|
xine-lib
1.2.9
|
#include <configfile.h>
Data Fields | |
| char *(* | register_string )(config_values_t *self, const char *key, const char *def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data) |
| char *(* | register_filename )(config_values_t *self, const char *key, const char *def_value, int req_type, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data) |
| int(* | register_range )(config_values_t *self, const char *key, int def_value, int min, int max, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data) |
| int(* | register_enum )(config_values_t *self, const char *key, int def_value, char **values, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data) |
| int(* | register_num )(config_values_t *self, const char *key, int def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data) |
| int(* | register_bool )(config_values_t *self, const char *key, int def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data) |
| void(* | register_entry )(config_values_t *self, cfg_entry_t *entry) |
| void(* | update_num )(config_values_t *self, const char *key, int value) |
| void(* | update_string )(config_values_t *self, const char *key, const char *value) |
| int(* | parse_enum )(const char *str, const char **values) |
| cfg_entry_t *(* | lookup_entry )(config_values_t *self, const char *key) |
| lookup config entries More... | |
| void(* | unregister_callback )(config_values_t *self, const char *key) |
| void(* | dispose )(config_values_t *self) |
| void(* | set_new_entry_callback )(config_values_t *self, xine_config_cb_t new_entry_cb, void *cb_data) |
| void(* | unset_new_entry_callback )(config_values_t *self) |
| char *(* | get_serialized_entry )(config_values_t *self, const char *key) |
| char *(* | register_serialized_entry )(config_values_t *self, const char *value) |
| cfg_entry_t * | first |
| cfg_entry_t * | last |
| cfg_entry_t * | cur |
| xine_config_cb_t | new_entry_cb |
| void * | new_entry_cbdata |
| pthread_mutex_t | config_lock |
| int | current_version |
| pthread_mutex_t config_values_s::config_lock |
mutex for modification to the config
Referenced by xine_config_get_first_entry(), xine_config_get_next_entry(), xine_config_lookup_entry(), and xine_config_reset().
| cfg_entry_t * config_values_s::cur |
| int config_values_s::current_version |
current config file's version number
| void(* config_values_s::dispose) (config_values_t *self) |
dispose of all config entries in memory
| cfg_entry_t* config_values_s::first |
config values are stored here:
Referenced by xine_config_get_first_entry(), and xine_config_reset().
| char*(* config_values_s::get_serialized_entry) (config_values_t *self, const char *key) |
serialize a config entry. return a base64 null terminated string.
| cfg_entry_t * config_values_s::last |
Referenced by xine_config_reset().
| cfg_entry_t*(* config_values_s::lookup_entry) (config_values_t *self, const char *key) |
lookup config entries
remember to call the changed_cb if it exists and you changed the value of this item
Referenced by _x_config_change_opt(), ao_alsa_mixer_init(), ao_alsa_open(), ao_jack_open(), ao_pulse_open(), cdda_close(), cdda_open(), dvd_handle_events(), faad_init_plugin(), handle_events(), load_syms_linux(), nbc_init(), open_radio_capture_device(), open_video_capture_device(), search_by_channel(), v4l_class_get_instance(), v4l_class_get_radio_instance(), v4l_class_get_video_instance(), and xine_config_lookup_entry().
| xine_config_cb_t config_values_s::new_entry_cb |
new entry callback
| void* config_values_s::new_entry_cbdata |
| int(* config_values_s::parse_enum) (const char *str, const char **values) |
small utility function for enum handling
| int(* config_values_s::register_bool) (config_values_t *self, const char *key, int def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data) |
Referenced by _x_alphablend_init(), _x_ao_new_port(), _x_vo_scale_init(), ao_alsa_mixer_init(), dvb_plugin_open(), file_input_init_plugin(), init_class(), init_config(), init_plugin(), init_spu_decoder_plugin(), init_video_plugin(), lavc_on_update_format(), open_plugin(), open_plugin_2(), opengl2_open_plugin(), spucc_register_cfg_vars(), vaapi_open_plugin(), vcd_init(), vdpau_open_plugin(), and video_decoder_loop().
| void(* config_values_s::register_entry) (config_values_t *self, cfg_entry_t *entry) |
| int(* config_values_s::register_enum) (config_values_t *self, const char *key, int def_value, char **values, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data) |
Referenced by _x_ao_new_port(), _x_osd_renderer_init(), bluray_init_plugin(), goom_init_plugin(), init_class(), init_config(), init_spu_decoder_plugin(), init_video_class(), init_video_plugin(), open_jack_plugin(), open_plugin(), open_plugin_2(), rtsp_session_start(), spucc_register_cfg_vars(), vaapi_open_plugin(), vcd_init(), vdpau_open_plugin(), and xine_probe_fast_memcpy().
| char*(* config_values_s::register_filename) (config_values_t *self, const char *key, const char *def_value, int req_type, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data) |
| int(* config_values_s::register_num) (config_values_t *self, const char *key, int def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data) |
Referenced by _x_ao_new_port(), _x_audio_decoder_init(), _x_video_decoder_init(), _x_vo_new_port(), bluray_init_plugin(), dxr3_scr_init(), dxr3_spudec_open_plugin(), dxr3_vo_init_plugin(), faad_init_plugin(), goom_init_plugin(), init_audio_plugin(), init_class(), init_plugin(), init_spu_decoder_plugin(), init_sputext_demux_class(), init_video_plugin(), input_http_init_class(), open_plugin(), open_plugin_2(), open_plugin_fb(), spucc_register_cfg_vars(), vaapi_open_plugin(), vcd_init(), and vdpau_open_plugin().
| int(* config_values_s::register_range) (config_values_t *self, const char *key, int def_value, int min, int max, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data) |
| char*(* config_values_s::register_serialized_entry) (config_values_t *self, const char *value) |
deserialize a config entry. value is a base 64 encoded string return the key of the serialized entry
| char*(* config_values_s::register_string) (config_values_t *self, const char *key, const char *def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data) |
| void(* config_values_s::set_new_entry_callback) (config_values_t *self, xine_config_cb_t new_entry_cb, void *cb_data) |
callback called when a new config entry is registered
Referenced by _load_plugin_class().
| void(* config_values_s::unregister_callback) (config_values_t *self, const char *key) |
unregister entry callback function
Referenced by bluray_class_dispose(), cdda_class_dispose(), dispose_audio_class(), dispose_class(), dispose_video_class(), dvd_class_dispose(), faad_class_unref(), file_input_class_dispose(), http_class_dispose(), mms_class_dispose(), spudec_dispose(), vaapi_dispose_locked(), and vcd_class_dispose().
| void(* config_values_s::unset_new_entry_callback) (config_values_t *self) |
unregister the callback
Referenced by _load_plugin_class().
| void(* config_values_s::update_num) (config_values_t *self, const char *key, int value) |
convenience function to update range, enum, num and bool values
Referenced by _x_ao_new_port(), _x_config_change_opt(), dvb_plugin_open(), dvbspeed_init(), input_http_init_class(), open_plugin(), open_plugin_2(), tuner_set_channel(), update_fast_memcpy(), vaapi_open_plugin(), vdpau_open_plugin(), and xine_probe_fast_memcpy().
| void(* config_values_s::update_string) (config_values_t *self, const char *key, const char *value) |
convenience function to update string values
Referenced by _x_config_change_opt(), ao_alsa_mixer_init(), input_http_init_class(), and open_fb_device().
1.8.14