diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/xine.h.tmpl.in | 88 |
1 files changed, 70 insertions, 18 deletions
diff --git a/include/xine.h.tmpl.in b/include/xine.h.tmpl.in index 3e581d299..b91a5f4fd 100644 --- a/include/xine.h.tmpl.in +++ b/include/xine.h.tmpl.in @@ -29,7 +29,7 @@ \endverbatim */ /* - * $Id: xine.h.tmpl.in,v 1.9 2001/04/27 10:42:38 f1rmb Exp $ + * $Id: xine.h.tmpl.in,v 1.10 2001/04/27 23:51:52 guenter Exp $ * */ @@ -39,7 +39,7 @@ #include <inttypes.h> /** - * \defgroup versgroup Version contants + * \defgroup versgroup Version constants * @{ */ /** \brief Major version constant */ @@ -53,10 +53,44 @@ #ifndef DOC_HIDDEN typedef void vo_driver_t; typedef void ao_functions_t; -typedef void config_values_t; typedef void xine_t; #endif +typedef struct config_values_s config_values_t; + +struct config_values_s { + /* + * lookup config values + */ + char* (*lookup_str) (config_values_t *this, + char *key, char *str_default); + + int (*lookup_int) (config_values_t *this, + char *key, int n_default); + + /* + * set config values + */ + + void (*set_str) (config_values_t *this, + char *key, char *value) ; + + void (*set_int) (config_values_t *this, + char *key, int value) ; + + /* + * write config file to disk + */ + void (*save) (config_values_t *this); + + /* + * read config file from disk, ovverriding values in memory + * if you also want to clear values that are not in the file, + * use _init instead! + */ + void (*read) (config_values_t *this, char *filename); +}; + /** * \brief Current xine status function type * \param nStatus Current status @@ -321,24 +355,42 @@ char **xine_get_autoplay_mrls (xine_t *this, char *plugin_id); /** * @defgroup loadpluginsgroup Loading plugins + * output plugin load support functions * @{ */ -/* visual_type (see bellow) */ -#define VIDEO_OUTPUT_TYPE_GETID 0 -#define VIDEO_OUTPUT_TYPE_PROBE 1 -#define VIDEO_OUTPUT_TYPE_X11 2 -#define VIDEO_OUTPUT_TYPE_FB 3 + +#define VISUAL_TYPE_X11 1 +#define VISUAL_TYPE_FB 2 +#define VISUAL_TYPE_GTK 3 + +/** + * \fn char **list_video_output_plugins (int visual_type) + * \brief list available video output plugins + * \return a list of available video output plugins for the specified visual type - the list is sorted by plugin priority + */ +char **xine_list_video_output_plugins (int visual_type); + +/** + * \fn vo_driver_t *load_video_output_plugin(config_values_t *config, char *id, int visual_type, void *visual) + * \brief load a specific video output plugin + */ vo_driver_t *xine_load_video_output_plugin(config_values_t *config, - char *filename, char *id, - int visual_type, void *visual); -/* audio_type */ -#define AUDIO_OUTPUT_TYPE_GETID 0 -#define AUDIO_OUTPUT_TYPE_PROBE 1 -#define AUDIO_OUTPUT_TYPE_OSS 2 -#define AUDIO_OUTPUT_TYPE_ALSA 3 -#define AUDIO_OUTPUT_TYPE_ESD 4 -ao_functions_t *xine_load_audio_output_plugin(config_values_t *config, - char *filename, char *id); + char *id, int visual_type, void *visual); + +/** + * \fn char **list_audio_output_plugins () + * \brief generate a list of all available audio output plugins + * \return a list of available audio output plugins the list returned is sorted by plugin priority + */ + +char **xine_list_audio_output_plugins (); + +/** + * \fn ao_functions_t *load_audio_output_plugin(config_values_t *config, char *id) + * \brief load a specific audio output plugin + */ + +ao_functions_t *xine_load_audio_output_plugin(config_values_t *config, char *id); /** @} end of loadpluginsgroup */ |