index.c File Reference

#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include "config.h"
#include "index.h"

Go to the source code of this file.

Classes

struct  Index
struct  CompareWrapper
struct  CompareWrapper2

Functions

EXPORT Index * index_new (void)
EXPORT void index_free (Index *index)
EXPORT int index_count (Index *index)
EXPORT void index_allocate (Index *index, int size)
EXPORT void index_set (Index *index, int at, void *value)
EXPORT void * index_get (Index *index, int at)
static void make_room (Index *index, int at, int count)
EXPORT void index_insert (Index *index, int at, void *value)
EXPORT void index_append (Index *index, void *value)
EXPORT void index_copy_set (Index *source, int from, Index *target, int to, int count)
EXPORT void index_copy_insert (Index *source, int from, Index *target, int to, int count)
EXPORT void index_copy_append (Index *source, int from, Index *target, int count)
EXPORT void index_merge_insert (Index *first, int at, Index *second)
EXPORT void index_merge_append (Index *first, Index *second)
EXPORT void index_move (Index *index, int from, int to, int count)
EXPORT void index_delete (Index *index, int at, int count)
static int index_compare (const void *ap, const void *bp, void *_wrapper)
EXPORT void index_sort (Index *index, int(*compare)(const void *, const void *))
static int index_compare2 (const void *ap, const void *bp, void *_wrapper)
EXPORT void index_sort_with_data (Index *index, int(*compare)(const void *a, const void *b, void *data), void *data)

Function Documentation

EXPORT void index_allocate ( Index *  index,
int  size 
)
EXPORT void index_append ( Index *  index,
void *  value 
)
static int index_compare ( const void *  ap,
const void *  bp,
void *  _wrapper 
) [static]

Definition at line 151 of file index.c.

Referenced by index_sort().

static int index_compare2 ( const void *  ap,
const void *  bp,
void *  _wrapper 
) [static]

Definition at line 164 of file index.c.

Referenced by index_sort_with_data().

EXPORT void index_copy_append ( Index *  source,
int  from,
Index *  target,
int  count 
)

Definition at line 123 of file index.c.

Referenced by playlist_reorder().

EXPORT void index_copy_insert ( Index *  source,
int  from,
Index *  target,
int  to,
int  count 
)

Definition at line 116 of file index.c.

Referenced by index_copy_append(), index_merge_append(), and index_merge_insert().

EXPORT void index_copy_set ( Index *  source,
int  from,
Index *  target,
int  to,
int  count 
)

Definition at line 110 of file index.c.

Referenced by playlist_reorder(), and playlist_shift().

EXPORT int index_count ( Index *  index  ) 
EXPORT void index_delete ( Index *  index,
int  at,
int  count 
)

Definition at line 144 of file index.c.

Referenced by playlist_delete(), and playlist_entry_delete().

EXPORT void index_free ( Index *  index  ) 
EXPORT void* index_get ( Index *  index,
int  at 
)
EXPORT void index_insert ( Index *  index,
int  at,
void *  value 
)

Definition at line 99 of file index.c.

Referenced by index_append(), playlist_delete(), and playlist_insert_with_id().

EXPORT void index_merge_append ( Index *  first,
Index *  second 
)

Definition at line 134 of file index.c.

EXPORT void index_merge_insert ( Index *  first,
int  at,
Index *  second 
)

Definition at line 129 of file index.c.

Referenced by playlist_entry_insert_batch_raw().

EXPORT void index_move ( Index *  index,
int  from,
int  to,
int  count 
)

Definition at line 139 of file index.c.

Referenced by playlist_reorder().

EXPORT Index* index_new ( void   ) 
EXPORT void index_set ( Index *  index,
int  at,
void *  value 
)

Definition at line 78 of file index.c.

Referenced by add_worker(), playlist_randomize(), and sort_selected().

EXPORT void index_sort ( Index *  index,
int(*)(const void *, const void *)  compare 
)

Definition at line 157 of file index.c.

EXPORT void index_sort_with_data ( Index *  index,
int(*)(const void *a, const void *b, void *data compare,
void *  data 
)

Definition at line 170 of file index.c.

Referenced by sort(), and sort_selected().

static void make_room ( Index *  index,
int  at,
int  count 
) [static]

Definition at line 88 of file index.c.

Referenced by index_copy_insert(), and index_insert().


Generated on 21 Aug 2012 for Audacious by  doxygen 1.6.1