summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-12-09 18:03:26 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-12-09 18:03:26 +0000
commitb3bf0f3eda9ebd70d75d3705d33bffa1491a7d3d (patch)
treec088af826b876314cf8fb67f2eeb47763bdeefef /include
parent67f3e9edd2441f934e4efef7fa009c32d3b5d617 (diff)
downloadxine-lib-b3bf0f3eda9ebd70d75d3705d33bffa1491a7d3d.tar.gz
xine-lib-b3bf0f3eda9ebd70d75d3705d33bffa1491a7d3d.tar.bz2
xine error reporting interface, very simple
CVS patchset: 1193 CVS date: 2001/12/09 18:03:26
Diffstat (limited to 'include')
-rw-r--r--include/xine.h.tmpl.in14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/xine.h.tmpl.in b/include/xine.h.tmpl.in
index e24bd384c..bcbdc02b5 100644
--- a/include/xine.h.tmpl.in
+++ b/include/xine.h.tmpl.in
@@ -28,7 +28,7 @@
\endverbatim
*/
/*
- * $Id: xine.h.tmpl.in,v 1.62 2001/12/09 17:25:55 guenter Exp $
+ * $Id: xine.h.tmpl.in,v 1.63 2001/12/09 18:03:26 guenter Exp $
*
*/
@@ -725,14 +725,14 @@ void xine_exit (xine_t *self);
* \param MRL Media Resource Location to open
* \param start_pos position in input source (0..65535)
* \param start_time position measured in seconds from stream start
- * \return Nothing
+ * \return 1 => OK, 0=>err (use xine_get_error for details)
*
* Open a stream and play it. If both start position parameters
* are !=0 start_pos will be used
* for non-seekable streams both values will be ignored
*
*/
-void xine_play (xine_t *self, char *MRL, int start_pos, int start_time);
+int xine_play (xine_t *self, char *MRL, int start_pos, int start_time);
/**
* \fn void xine_set_speed (xine_t *self, int speed)
@@ -1686,7 +1686,15 @@ void xine_log (xine_t *self, int buf, const char *format, ...);
char **xine_get_log (xine_t *self, int buf);
+/*
+ * xine error reporting
+ */
+
+#define XINE_ERROR_NONE 0
+#define XINE_ERROR_NO_INPUT_PLUGIN 1
+#define XINE_ERROR_NO_DEMUXER_PLUGIN 2
+int xine_get_error (xine_t *self);
/** @} end of xine_api */