Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
Classes | Functions
index.c File Reference
#include <stdlib.h>
#include <string.h>
#include <glib.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 150 of file index.c.

Referenced by index_sort().

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

Definition at line 163 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 122 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 115 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 109 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 143 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 98 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 133 of file index.c.

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

Definition at line 128 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 138 of file index.c.

Referenced by playlist_reorder().

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

Definition at line 156 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 169 of file index.c.

Referenced by sort(), and sort_selected().

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

Definition at line 87 of file index.c.

Referenced by index_copy_insert(), and index_insert().