diff options
Diffstat (limited to 'xine_input_vdr.h')
-rw-r--r-- | xine_input_vdr.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/xine_input_vdr.h b/xine_input_vdr.h new file mode 100644 index 00000000..87f41cdb --- /dev/null +++ b/xine_input_vdr.h @@ -0,0 +1,46 @@ +/* + * xine_input_vdr.h: + * + * See the main source file 'xineliboutput.c' for copyright information and + * how to reach the author. + * + * $Id: xine_input_vdr.h,v 1.1 2006-06-03 09:50:54 phintuka Exp $ + * + */ + +#ifndef __XINE_INPUT_VDR_H_ +#define __XINE_INPUT_VDR_H_ + +#if defined __cplusplus +extern "C" { +#endif + +struct input_plugin_s; +struct osd_command_s; + +typedef struct vdr_input_plugin_funcs_s { + /* VDR --> input plugin (only local mode) */ + int (*push_input_write)(struct input_plugin_s *, char *, int); + int (*push_input_control)(struct input_plugin_s *, char *); + int (*push_input_osd)(struct input_plugin_s *, struct osd_command_s *); + /* input plugin --> frontend (only local mode) */ + void (*xine_input_event)(char *, char *); + /* input plugin --> frontend */ + void *(*fe_control)(void *fe_handle, char *); + void *fe_handle; + /* frontend --> input plugin (remote mode) */ + int (*input_control)(struct input_plugin_s *, char *, char *, int, int); +} vdr_input_plugin_funcs_t; + +#define CONTROL_OK 0 +#define CONTROL_UNKNOWN -1 +#define CONTROL_PARAM_ERROR -2 +#define CONTROL_DISCONNECTED -3 + +#if defined __cplusplus +} +#endif + + +#endif /*__XINE_INPUT_VDR_H_*/ + |