#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include "index.h"
Go to the source code of this file.
Classes | |
struct | index |
Functions | |
struct index * | index_new (void) |
void | index_free (struct index *index) |
gint | index_count (struct index *index) |
void | index_allocate (struct index *index, gint size) |
void | index_set (struct index *index, gint at, void *value) |
void * | index_get (struct index *index, gint at) |
static void | make_room (struct index *index, gint at, gint count) |
void | index_insert (struct index *index, gint at, void *value) |
void | index_append (struct index *index, void *value) |
void | index_copy_set (struct index *source, gint from, struct index *target, gint to, gint count) |
void | index_copy_insert (struct index *source, gint from, struct index *target, gint to, gint count) |
void | index_copy_append (struct index *source, gint from, struct index *target, gint count) |
void | index_merge_insert (struct index *first, gint at, struct index *second) |
void | index_merge_append (struct index *first, struct index *second) |
void | index_move (struct index *index, gint from, gint to, gint count) |
void | index_delete (struct index *index, gint at, gint count) |
static gint | index_compare (const void *a, const void *b, void *_compare) |
void | index_sort (struct index *index, gint(*compare)(const void *, const void *)) |
static gint | index_compare_with_data (const void *a, const void *b, void *_index) |
void | index_sort_with_data (struct index *index, gint(*compare)(const void *a, const void *b, void *data), void *data) |
Definition at line 61 of file index.c.
Referenced by make_room(), and playlist_entry_insert_batch_with_decoders().
void index_append | ( | struct index * | index, | |
void * | value | |||
) |
Definition at line 102 of file index.c.
Referenced by add_cb(), add_list(), make_entries(), playlist_delete_selected(), playlist_entry_insert(), playlist_init(), playlist_insert(), playlist_reverse(), playlist_shift(), and sort_selected().
static gint index_compare | ( | const void * | a, | |
const void * | b, | |||
void * | _compare | |||
) | [static] |
Definition at line 148 of file index.c.
Referenced by index_sort().
static gint index_compare_with_data | ( | const void * | a, | |
const void * | b, | |||
void * | _index | |||
) | [static] |
Definition at line 162 of file index.c.
Referenced by index_sort_with_data().
Definition at line 120 of file index.c.
Referenced by playlist_reorder().
void index_copy_insert | ( | struct index * | source, | |
gint | from, | |||
struct index * | target, | |||
gint | to, | |||
gint | count | |||
) |
Definition at line 113 of file index.c.
Referenced by index_copy_append(), index_merge_append(), and index_merge_insert().
void index_copy_set | ( | struct index * | source, | |
gint | from, | |||
struct index * | target, | |||
gint | to, | |||
gint | count | |||
) |
Definition at line 107 of file index.c.
Referenced by playlist_reorder(), and playlist_shift().
Definition at line 56 of file index.c.
Referenced by check_all_scanned(), check_selected_scanned(), lookup_entry(), lookup_playlist(), playlist_by_unique_id(), playlist_count(), playlist_delete(), playlist_delete_selected(), playlist_end(), playlist_entry_count(), playlist_entry_delete(), playlist_entry_insert_batch_with_decoders(), playlist_free(), playlist_insert(), playlist_load_state(), playlist_next_song(), playlist_queue_delete(), playlist_queue_delete_selected(), playlist_queue_insert_selected(), playlist_randomize(), playlist_reformat_titles(), playlist_reorder(), playlist_rescan_file(), playlist_rescan_real(), playlist_reverse(), playlist_save_state(), playlist_select_all(), playlist_shift(), playlist_update_range(), queue_update(), scan_next(), shuffle_next(), shuffle_prev(), shuffle_reset(), sort(), and sort_selected().
Definition at line 141 of file index.c.
Referenced by playlist_delete(), and playlist_entry_delete().
void index_free | ( | struct index * | index | ) |
Definition at line 50 of file index.c.
Referenced by playlist_delete_selected(), playlist_end(), playlist_entry_insert_batch_with_decoders(), playlist_free(), playlist_reorder(), playlist_reverse(), and sort_selected().
Definition at line 80 of file index.c.
Referenced by check_all_scanned(), check_selected_scanned(), lookup_entry(), lookup_playlist(), number_entries(), number_playlists(), playlist_by_unique_id(), playlist_delete(), playlist_delete_selected(), playlist_end(), playlist_entry_delete(), playlist_entry_insert_batch_with_decoders(), playlist_free(), playlist_load_state(), playlist_next_song(), playlist_prev_song(), playlist_queue_insert_selected(), playlist_randomize(), playlist_reformat_titles(), playlist_rescan_file(), playlist_rescan_real(), playlist_reverse(), playlist_save_state(), playlist_select_all(), playlist_shift(), scan_next(), scan_receive(), shuffle_next(), shuffle_prev(), shuffle_reset(), and sort_selected().
Definition at line 96 of file index.c.
Referenced by index_append(), and playlist_insert().
Definition at line 126 of file index.c.
Referenced by playlist_entry_insert_batch_with_decoders().
Definition at line 136 of file index.c.
Referenced by playlist_reorder().
struct index* index_new | ( | void | ) | [read] |
Definition at line 37 of file index.c.
Referenced by add_cb(), add_list(), playlist_delete_selected(), playlist_entry_insert(), playlist_entry_insert_batch_with_decoders(), playlist_init(), playlist_new(), playlist_reorder(), playlist_reverse(), playlist_shift(), and sort_selected().
Definition at line 75 of file index.c.
Referenced by playlist_randomize(), and sort_selected().
void index_sort_with_data | ( | struct index * | index, | |
gint(*)(const void *a, const void *b, void *data) | compare, | |||
void * | data | |||
) |
Definition at line 171 of file index.c.
Referenced by sort(), and sort_selected().
Definition at line 85 of file index.c.
Referenced by index_copy_insert(), and index_insert().