Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

List.c File Reference

#include <stdlib.h>
#include "debug.h"
#include "List.h"
#include "Memory.h"

Include dependency graph for List.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  List_s
struct  Node_s

Functions

List_tlist_CreateList (void)
void list_DeleteList (List_t *List)
Node_tlist_CreateNode (void)
void list_DeleteNode (Node_t *Node)
void list_InsertNodeHead (List_t *List, Node_t *Node)
void list_InsertNodeTail (List_t *List, Node_t *Node)
void list_InsertNodeNext (List_t *List, Node_t *PrevNode, Node_t *Node)
void list_InsertNodePrev (List_t *List, Node_t *NextNode, Node_t *Node)
Node_tlist_RemoveNode (List_t *List, Node_t *Node)
Node_tlist_RemoveNodeHead (List_t *List)
Node_tlist_RemoveNodeTail (List_t *List)
Node_tlist_GetNodeHead (List_t *List)
Node_tlist_GetNodeTail (List_t *List)
Node_tlist_GetNodeNext (List_t *List, Node_t *Node)
Node_tlist_GetNodePrev (List_t *List, Node_t *Node)
Node_tlist_GetNodeAt (List_t *List, int Index)
int list_GetNodeIndex (List_t *List, Node_t *Node)
int list_GetNodeCount (List_t *List)
void * list_GetNodeData (Node_t *Node)
void list_SetNodeData (Node_t *Node, void *Data)
void list_SortNodes (List_t *List, int(*Compare)(void *Data1, void *Data2))


Function Documentation

List_t* list_CreateList void   
 

Definition at line 70 of file List.c.

References debug_Begin, debug_End, and mem_calloc.

Referenced by bordered_CreateSkin, client_ClientInit, client_CliSRq_OpenWindowTL, client_Init, gadget_Init, glw_Thread, gui_ServerMain, gxml_CreateGadgetTreeTL, img_Init, locale_InitInternal, net_Server, skin_Init, window_OpenWindowTL, and WinMain.

Node_t* list_CreateNode void   
 

Definition at line 105 of file List.c.

References debug_Begin, debug_End, and mem_calloc.

Referenced by bordered_AddImage, bordered_StartElement, client_CliSRq_OpenWindowTL, client_TimerStart, gadget_RegisterClassTL, glw_LoadFontFaces, glw_OpenFontTL, glw_OpenWindowTL, gui_TimerStartTL, gxml_StartElement, img_RegisterFormatTL, locale_StartElement, net_InsertFileCache, net_MsgToWaitList, skin_RegisterSkinTL, and window_OpenWindowTL.

void list_DeleteList List_t   List
 

Definition at line 88 of file List.c.

References debug_Begin, debug_End, mem_free, and NULL.

void list_DeleteNode Node_t   Node
 

Definition at line 123 of file List.c.

References debug_Begin, debug_End, mem_free, and NULL.

Node_t* list_GetNodeAt List_t   List,
int    Index
 

Definition at line 449 of file List.c.

References List_s::Count, debug_Begin, debug_End, list_GetNodeHead, list_GetNodeNext, and NULL.

int list_GetNodeCount List_t   List
 

Definition at line 495 of file List.c.

References List_s::Count, debug_Begin, debug_End, and NULL.

void* list_GetNodeData Node_t   Node
 

Definition at line 516 of file List.c.

References Node_s::Data, debug_Begin, debug_End, and NULL.

Node_t* list_GetNodeHead List_t   List
 

Definition at line 363 of file List.c.

References debug_Begin, debug_End, List_s::Head, and NULL.

int list_GetNodeIndex List_t   List,
Node_t   Node
 

Definition at line 471 of file List.c.

References debug_Begin, debug_End, list_GetNodePrev, and NULL.

Node_t* list_GetNodeNext List_t   List,
Node_t   Node
 

Definition at line 406 of file List.c.

References debug_Begin, debug_End, Node_s::Next, and NULL.

Node_t* list_GetNodePrev List_t   List,
Node_t   Node
 

Definition at line 428 of file List.c.

References debug_Begin, debug_End, NULL, and Node_s::Prev.

Node_t* list_GetNodeTail List_t   List
 

Definition at line 384 of file List.c.

References debug_Begin, debug_End, NULL, and List_s::Tail.

void list_InsertNodeHead List_t   List,
Node_t   Node
 

Definition at line 140 of file List.c.

References List_s::Count, debug_Begin, debug_End, List_s::Head, Node_s::Next, NULL, Node_s::Prev, and List_s::Tail.

void list_InsertNodeNext List_t   List,
Node_t   PrevNode,
Node_t   Node
 

Definition at line 200 of file List.c.

References List_s::Count, debug_Begin, debug_End, Node_s::Next, NULL, Node_s::Prev, and List_s::Tail.

void list_InsertNodePrev List_t   List,
Node_t   NextNode,
Node_t   Node
 

Definition at line 230 of file List.c.

References List_s::Count, debug_Begin, debug_End, List_s::Head, Node_s::Next, NULL, and Node_s::Prev.

void list_InsertNodeTail List_t   List,
Node_t   Node
 

Definition at line 170 of file List.c.

References List_s::Count, debug_Begin, debug_End, List_s::Head, Node_s::Next, NULL, Node_s::Prev, and List_s::Tail.

Node_t* list_RemoveNode List_t   List,
Node_t   Node
 

Definition at line 260 of file List.c.

References List_s::Count, debug_Begin, debug_End, List_s::Head, Node_s::Next, NULL, Node_s::Prev, and List_s::Tail.

Node_t* list_RemoveNodeHead List_t   List
 

Definition at line 297 of file List.c.

References List_s::Count, debug_Begin, debug_End, List_s::Head, Node_s::Next, NULL, Node_s::Prev, and List_s::Tail.

Node_t* list_RemoveNodeTail List_t   List
 

Definition at line 330 of file List.c.

References List_s::Count, debug_Begin, debug_End, List_s::Head, Node_s::Next, NULL, Node_s::Prev, and List_s::Tail.

void list_SetNodeData Node_t   Node,
void *    Data
 

Definition at line 537 of file List.c.

References Node_s::Data, debug_Begin, debug_End, and NULL.

void list_SortNodes List_t   List,
int(*    Compare)(void *Data1, void *Data2)
 

Definition at line 555 of file List.c.

References debug_Begin, debug_End, list_GetNodeCount, list_GetNodeData, list_GetNodeHead, list_GetNodeNext, list_SetNodeData, and NULL.


Generated on Tue Jan 7 12:12:28 2003 for THEGUI by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002