/home/dko/Projects/mobilec/src/mc_list/list.h File Reference

#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Data Structures

struct  listNode_s
struct  list_s

Defines

#define DATA   void*
#define QUEUE_TEMPLATE(name, node_type, search_type, search_var_name)

Typedefs

typedef struct listNode_s listNode_t
typedef listNode_tlistNode_p
typedef struct list_s list_t
typedef list_tlist_p

Functions

list_p ListInitialize (void)
void ListTerminate (list_p list)
int ListGetSize (list_p list)
int ListAdd (list_p list, DATA data)
int ListInsert (list_p list, DATA data, const int index)
DATA ListGetHead (list_p list)
DATA ListPop (list_p list)
DATA ListSearch (list_p list, const int index)
DATA ListDelete (list_p list, const int index)

Define Documentation

#define DATA   void*

Definition at line 30 of file list.h.

Referenced by barrier_queue_Add(), ListDelete(), ListPop(), and syncListAddNode().

#define QUEUE_TEMPLATE ( name,
node_type,
search_type,
search_var_name   ) 

Definition at line 68 of file list.h.


Typedef Documentation

typedef list_t* list_p

Definition at line 49 of file list.h.

typedef struct list_s list_t

Definition at line 39 of file list.h.

typedef struct listNode_s listNode_t

Function Documentation

int ListAdd ( list_p  list,
DATA  data 
)
DATA ListDelete ( list_p  list,
const int  index 
)
DATA ListGetHead ( list_p  list  ) 

Definition at line 79 of file list.c.

References list_s::listhead, and listNode_s::node_data.

int ListGetSize ( list_p  list  ) 
list_p ListInitialize ( void   ) 

Definition at line 33 of file list.c.

References list_s::listhead, and list_s::size.

Referenced by barrier_queue_New(), df_Initialize(), df_request_list_New(), and syncListInit().

int ListInsert ( list_p  list,
DATA  data,
const int  index 
)

Definition at line 207 of file list.c.

DATA ListPop ( list_p  list  ) 
DATA ListSearch ( list_p  list,
const int  index 
)
void ListTerminate ( list_p  list  ) 

Definition at line 49 of file list.c.

References list_s::listhead, and list_s::size.

Referenced by barrier_queue_Destroy(), df_Destroy(), df_request_list_Destroy(), and syncListDestroy().

Generated on Tue Dec 28 15:15:28 2010 for Mobile-C by  doxygen 1.6.3