Functions

list1.c File Reference

#include "list1_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>

Go to the source code of this file.

Functions

static int GWEN_List1__compar (const void *a, const void *b)
static GWENHYWFAR_CB int GWEN_List1__defaultSortFn (const void *a, const void *b, int ascending)
int GWEN_List1_Add (GWEN_LIST1 *l, GWEN_LIST1_ELEMENT *el)
int GWEN_List1_AddList (GWEN_LIST1 *dest, GWEN_LIST1 *l)
int GWEN_List1_Del (GWEN_LIST1_ELEMENT *el)
void GWEN_List1_free (GWEN_LIST1 *l)
int GWEN_List1_GetCount (const GWEN_LIST1 *l)
void * GWEN_List1_GetFirst (const GWEN_LIST1 *l)
void * GWEN_List1_GetLast (const GWEN_LIST1 *l)
int GWEN_List1_Insert (GWEN_LIST1 *l, GWEN_LIST1_ELEMENT *el)
GWEN_LIST1GWEN_List1_new (void)
GWEN_LIST1_SORT_FN GWEN_List1_SetSortFn (GWEN_LIST1 *l, GWEN_LIST1_SORT_FN fn)
void GWEN_List1_Sort (GWEN_LIST1 *l, int ascending)
void GWEN_List1_SortCtx_free (GWEN_LIST1_SORT_CTX *ctx)
GWEN_LIST1_SORT_CTX * GWEN_List1_SortCtx_new (GWEN_LIST1 *list, int param)
void GWEN_List1_SortElem_free (GWEN_LIST1_SORT_ELEM *e)
GWEN_LIST1_SORT_ELEM * GWEN_List1_SortElem_new (GWEN_LIST1_SORT_CTX *ctx, GWEN_LIST1_ELEMENT *elem)
void GWEN_List1Element_free (GWEN_LIST1_ELEMENT *el)
void * GWEN_List1Element_GetData (const GWEN_LIST1_ELEMENT *el)
void * GWEN_List1Element_GetNext (const GWEN_LIST1_ELEMENT *el)
void * GWEN_List1Element_GetPrevious (const GWEN_LIST1_ELEMENT *el)
GWEN_LIST1_ELEMENTGWEN_List1Element_new (void *d)

Function Documentation

static int GWEN_List1__compar ( const void *  a,
const void *  b 
) [static]

Definition at line 331 of file list1.c.

Referenced by GWEN_List1_Sort().

static GWENHYWFAR_CB int GWEN_List1__defaultSortFn ( const void *  a,
const void *  b,
int  ascending 
) [static]

Definition at line 35 of file list1.c.

void GWEN_List1_SortCtx_free ( GWEN_LIST1_SORT_CTX *  ctx  ) 

Definition at line 375 of file list1.c.

References GWEN_FREE_OBJECT.

Referenced by GWEN_List1_Sort().

GWEN_LIST1_SORT_CTX* GWEN_List1_SortCtx_new ( GWEN_LIST1 list,
int  param 
)

Definition at line 364 of file list1.c.

References GWEN_NEW_OBJECT.

Referenced by GWEN_List1_Sort().

void GWEN_List1_SortElem_free ( GWEN_LIST1_SORT_ELEM *  e  ) 

Definition at line 394 of file list1.c.

References GWEN_FREE_OBJECT.

Referenced by GWEN_List1_Sort().

GWEN_LIST1_SORT_ELEM* GWEN_List1_SortElem_new ( GWEN_LIST1_SORT_CTX *  ctx,
GWEN_LIST1_ELEMENT elem 
)

Definition at line 383 of file list1.c.

References GWEN_NEW_OBJECT.

Referenced by GWEN_List1_Sort().