gwenhywfar  5.10.1
Functions
list1.c File Reference
#include "list1_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
Include dependency graph for list1.c:

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 (GWEN_UNUSED const void *a, GWEN_UNUSED const void *b, GWEN_UNUSED 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

◆ GWEN_List1__compar()

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

Definition at line 351 of file list1.c.

Referenced by GWEN_List1_Sort().

Here is the caller graph for this function:

◆ GWEN_List1__defaultSortFn()

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

Definition at line 35 of file list1.c.

Referenced by GWEN_List1_new().

Here is the caller graph for this function:

◆ GWEN_List1_SortCtx_free()

void GWEN_List1_SortCtx_free ( GWEN_LIST1_SORT_CTX *  ctx)

Definition at line 398 of file list1.c.

References GWEN_FREE_OBJECT.

Referenced by GWEN_List1_Sort().

Here is the caller graph for this function:

◆ GWEN_List1_SortCtx_new()

GWEN_LIST1_SORT_CTX* GWEN_List1_SortCtx_new ( GWEN_LIST1 list,
int  param 
)

Definition at line 386 of file list1.c.

References GWEN_NEW_OBJECT.

Referenced by GWEN_List1_Sort().

Here is the caller graph for this function:

◆ GWEN_List1_SortElem_free()

void GWEN_List1_SortElem_free ( GWEN_LIST1_SORT_ELEM *  e)

Definition at line 419 of file list1.c.

References GWEN_FREE_OBJECT.

Referenced by GWEN_List1_Sort().

Here is the caller graph for this function:

◆ GWEN_List1_SortElem_new()

GWEN_LIST1_SORT_ELEM* GWEN_List1_SortElem_new ( GWEN_LIST1_SORT_CTX *  ctx,
GWEN_LIST1_ELEMENT elem 
)

Definition at line 407 of file list1.c.

References GWEN_NEW_OBJECT.

Referenced by GWEN_List1_Sort().

Here is the caller graph for this function: