xine-lib 1.2.11
|
Go to the source code of this file.
Macros | |
#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 *, void *) |
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_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) |
#define XINE_SARRAY_MODE_DEFAULT 0x00000000 |
#define XINE_SARRAY_MODE_FIRST 0x80000000 |
#define XINE_SARRAY_MODE_LAST 0x40000000 |
#define XINE_SARRAY_MODE_UNIQUE 0x20000000 |
typedef int(* xine_sarray_comparator_t) (void *, void *) |
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::mode, xine_sarray_binary_search(), and XINE_SARRAY_MODE_UNIQUE.
Referenced by _build_list_typed_plugins(), _decoder_priority_cb(), _insert_node(), load_plugin_list(), and xine_event_select().
int xine_sarray_binary_search | ( | xine_sarray_t * | sarray, |
void * | key | ||
) |
References xine_sarray_s::chunk, xine_sarray_s::comparator, key, xine_sarray_s::mode, xine_sarray_s::size, XINE_SARRAY_MODE_FIRST, and XINE_SARRAY_MODE_LAST.
Referenced by collect_plugins(), xine_event_send(), and xine_sarray_add().
void xine_sarray_clear | ( | xine_sarray_t * | sarray | ) |
References xine_sarray_s::size.
Referenced by xine_event_select().
void xine_sarray_delete | ( | xine_sarray_t * | sarray | ) |
References xine_sarray_s::chunk, and xine_sarray_s::default_chunk.
Referenced by _build_list_typed_plugins(), _new_catalog(), dispose_plugin_list(), xine_event_queue_unref_unlock(), and xine_event_select().
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_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(), dispose_plugin_list(), load_plugin_list(), map_decoder_list(), probe_demux(), 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_list_video_output_plugins_typed(), xine_new_framegrab_video_port(), xine_open_audio_driver(), and xine_post_init().
xine_sarray_t * xine_sarray_new | ( | size_t | initial_size, |
xine_sarray_comparator_t | comparator | ||
) |
void xine_sarray_remove | ( | xine_sarray_t * | sarray, |
unsigned int | position | ||
) |
References xine_sarray_s::chunk, and xine_sarray_s::size.
Referenced by _load_required_plugins(), and collect_plugins().
int xine_sarray_remove_ptr | ( | xine_sarray_t * | sarray, |
void * | ptr | ||
) |
References xine_sarray_s::chunk, and xine_sarray_s::size.
Referenced by _decoder_priority_cb().
void xine_sarray_set_mode | ( | xine_sarray_t * | sarray, |
unsigned int | mode | ||
) |
References mode(), and xine_sarray_s::mode.
Referenced by _build_list_typed_plugins(), _new_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_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(), dispose_plugin_list(), map_decoder_list(), probe_demux(), 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_list_video_output_plugins_typed(), xine_new_framegrab_video_port(), xine_open_audio_driver(), and xine_post_init().