xine-lib 1.2.13-20230125hg15249
|
Go to the source code of this file.
Macros | |
#define | XINE_SARRAY 3 |
#define | XINE_SARRAY_MODE_DEFAULT 0x00000000 |
#define | XINE_SARRAY_MODE_FIRST 0x80000000 |
#define | XINE_SARRAY_MODE_LAST 0x40000000 |
#define | XINE_SARRAY_MODE_UNIQUE 0x20000000 |
Typedefs | |
typedef struct xine_sarray_s | xine_sarray_t |
typedef int(* | xine_sarray_comparator_t) (void *item1, void *item2) |
typedef unsigned int(* | xine_sarray_hash_func_t) (void *item) |
Functions | |
xine_sarray_t * | xine_sarray_new (size_t initial_size, xine_sarray_comparator_t comparator) |
void | xine_sarray_delete (xine_sarray_t *sarray) |
void | xine_sarray_set_hash (xine_sarray_t *sarray, xine_sarray_hash_func_t hash_func, unsigned int hash_size) |
void | xine_sarray_set_mode (xine_sarray_t *sarray, unsigned int mode) |
size_t | xine_sarray_size (const xine_sarray_t *sarray) |
void | xine_sarray_clear (xine_sarray_t *sarray) |
int | xine_sarray_add (xine_sarray_t *sarray, void *value) |
void * | xine_sarray_remove (xine_sarray_t *sarray, unsigned int position) |
int | xine_sarray_remove_ptr (xine_sarray_t *sarray, void *ptr) |
void * | xine_sarray_get (xine_sarray_t *sarray, unsigned int position) |
int | xine_sarray_binary_search (xine_sarray_t *sarray, void *key) |
void | xine_sarray_move_location (xine_sarray_t *sarray, void *new_ptr, unsigned int position) |
#define XINE_SARRAY 3 |
#define XINE_SARRAY_MODE_DEFAULT 0x00000000 |
Referenced by xine_sarray_new().
#define XINE_SARRAY_MODE_FIRST 0x80000000 |
Referenced by xine_sarray_set_mode().
#define XINE_SARRAY_MODE_LAST 0x40000000 |
Referenced by _x_video_overlay_new_manager(), and xine_sarray_set_mode().
#define XINE_SARRAY_MODE_UNIQUE 0x20000000 |
Referenced by _build_list_typed_plugins(), _new_catalog(), _x_config_init(), save_catalog(), xine_event_select(), and xine_sarray_set_mode().
typedef int(* xine_sarray_comparator_t) (void *item1, void *item2) |
typedef unsigned int(* xine_sarray_hash_func_t) (void *item) |
typedef struct xine_sarray_s xine_sarray_t |
int xine_sarray_add | ( | xine_sarray_t * | sarray, |
void * | value ) |
References _xine_sarray_insert(), xine_sarray_s::add_here, xine_sarray_s::first_test, xine_sarray_s::get, xine_sarray_s::hash, xine_sarray_s::last_add, xine_sarray_s::last_value, xine_sarray_s::same_dir, xine_sarray_s::start, xine_sarray_s::stop, xine_sarray_s::unique_test, and xine_sarray_s::value.
Referenced by _build_list_typed_plugins(), _decoder_priority_cb(), _insert_node(), config_insert(), config_validate(), load_plugin_list(), save_plugin_list(), video_overlay_add_event(), xine_event_select(), and xine_gl_extensions_load().
int xine_sarray_binary_search | ( | xine_sarray_t * | sarray, |
void * | key ) |
References xine_sarray_s::find, xine_sarray_s::first_test, xine_sarray_s::get, xine_sarray_s::hash, key, xine_sarray_s::start, and xine_sarray_s::stop.
Referenced by collect_plugins(), config_insert(), video_overlay_event(), xine_event_send(), and xine_gl_extensions_test().
void xine_sarray_clear | ( | xine_sarray_t * | sarray | ) |
References xine_sarray_s::hash, xine_sarray_s::last_add, xine_sarray_s::same_dir, xine_sarray_s::size, and xine_sarray_s::table.
Referenced by video_overlay_init(), and xine_event_select().
void xine_sarray_delete | ( | xine_sarray_t * | sarray | ) |
References xine_sarray_s::chunk, xine_sarray_s::default_chunk, xine_sarray_s::hash, and xine_sarray_s::table.
Referenced by _build_list_typed_plugins(), _new_catalog(), config_dispose(), dispose_plugin_list(), save_catalog(), video_overlay_dispose(), xine_event_queue_unref_unlock(), xine_event_select(), and xine_gl_extensions_unload().
void * xine_sarray_get | ( | xine_sarray_t * | sarray, |
unsigned int | position ) |
References xine_sarray_s::chunk, and NULL.
Referenced by _build_list_typed_plugins(), _get_demux_strings(), _get_input_class(), _load_required_plugins(), _unload_unref_plugins(), _x_find_demux_plugin(), _x_find_demux_plugin_by_name(), _x_find_demux_plugin_last_probe(), _x_find_input_plugin(), _x_find_module(), _x_load_audio_output_plugin(), _x_load_video_output_plugin(), collect_plugins(), config_insert(), config_validate(), dispose_plugin_list(), load_plugin_list(), map_decoder_list(), save_plugin_list(), video_overlay_event(), video_overlay_free_handle(), xine_get_autoplay_input_plugin_ids(), xine_get_browsable_input_plugin_ids(), xine_get_demux_for_mime_type(), xine_list_post_plugins_typed(), xine_new_framegrab_video_port(), xine_open_audio_driver(), and xine_post_init().
void xine_sarray_move_location | ( | xine_sarray_t * | sarray, |
void * | new_ptr, | ||
unsigned int | position ) |
References xine_sarray_s::chunk, xine_sarray_s::last_add, xine_sarray_s::same_dir, and xine_sarray_s::size.
Referenced by config_insert().
xine_sarray_t * xine_sarray_new | ( | size_t | initial_size, |
xine_sarray_comparator_t | comparator ) |
References _xine_sarray_dummy_comp(), _xine_sarray_find_default(), _xine_sarray_hash_none(), xine_sarray_s::add_here, xine_sarray_s::chunk, xine_sarray_s::chunk_size, xine_sarray_s::comparator, xine_sarray_s::default_chunk, xine_sarray_s::find, xine_sarray_s::get, xine_sarray_s::hash, xine_sarray_s::last_add, xine_sarray_s::last_value, MIN_CHUNK_SIZE, xine_sarray_s::mode, NULL, xine_sarray_s::same_dir, xine_sarray_s::size, xine_sarray_s::start, xine_sarray_s::stop, xine_sarray_s::table, xine_sarray_s::unique_test, xine_sarray_s::user_get, xine_sarray_s::value, and XINE_SARRAY_MODE_DEFAULT.
Referenced by _build_list_typed_plugins(), _new_catalog(), _x_config_init(), _x_video_overlay_new_manager(), save_catalog(), xine_event_select(), and xine_gl_extensions_load().
void * xine_sarray_remove | ( | xine_sarray_t * | sarray, |
unsigned int | position ) |
References _xine_sarray_hash_remove(), xine_sarray_s::chunk, xine_sarray_s::last_add, NULL, xine_sarray_s::same_dir, and xine_sarray_s::size.
Referenced by _load_required_plugins(), collect_plugins(), video_overlay_event(), and video_overlay_free_handle().
int xine_sarray_remove_ptr | ( | xine_sarray_t * | sarray, |
void * | ptr ) |
References _xine_sarray_hash_remove(), xine_sarray_s::chunk, xine_sarray_s::last_add, xine_sarray_s::same_dir, and xine_sarray_s::size.
Referenced by _decoder_priority_cb(), and video_overlay_add_event().
void xine_sarray_set_hash | ( | xine_sarray_t * | sarray, |
xine_sarray_hash_func_t | hash_func, | ||
unsigned int | hash_size ) |
References _xine_sarray_hash_get(), _xine_sarray_hash_none(), xine_sarray_s::get, xine_sarray_s::hash, NULL, xine_sarray_s::size, xine_sarray_s::table, and xine_sarray_s::user_get.
Referenced by _x_config_init(), and save_catalog().
void xine_sarray_set_mode | ( | xine_sarray_t * | sarray, |
unsigned int | mode ) |
References _xine_sarray_find_default(), _xine_sarray_find_first(), _xine_sarray_find_last(), xine_sarray_s::find, mode(), xine_sarray_s::mode, xine_sarray_s::unique_test, XINE_SARRAY_MODE_FIRST, XINE_SARRAY_MODE_LAST, and XINE_SARRAY_MODE_UNIQUE.
Referenced by _build_list_typed_plugins(), _new_catalog(), _x_config_init(), _x_video_overlay_new_manager(), save_catalog(), and xine_event_select().
size_t xine_sarray_size | ( | const xine_sarray_t * | sarray | ) |
References xine_sarray_s::size.
Referenced by _build_list_typed_plugins(), _get_demux_strings(), _get_input_class(), _load_required_plugins(), _unload_unref_plugins(), _x_find_demux_plugin(), _x_find_demux_plugin_by_name(), _x_find_demux_plugin_last_probe(), _x_find_input_plugin(), _x_find_module(), _x_load_audio_output_plugin(), _x_load_video_output_plugin(), config_insert(), config_validate(), dispose_plugin_list(), map_decoder_list(), save_plugin_list(), xine_get_autoplay_input_plugin_ids(), xine_get_browsable_input_plugin_ids(), xine_get_demux_for_mime_type(), xine_list_post_plugins_typed(), xine_new_framegrab_video_port(), xine_open_audio_driver(), and xine_post_init().