/home/dko/projects/mobilec/trunk/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 27 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 65 of file list.h.


Typedef Documentation

typedef list_t* list_p

Definition at line 46 of file list.h.

typedef struct list_s list_t

typedef listNode_t* listNode_p

Definition at line 36 of file list.h.

typedef struct listNode_s listNode_t


Function Documentation

int ListAdd ( list_p  list,
DATA  data 
)

Definition at line 158 of file list.c.

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

Referenced by barrier_queue_Add(), df_Add(), df_AddRequest(), and syncListAddNode().

DATA ListDelete ( list_p  list,
const int  index 
)

Definition at line 213 of file list.c.

References DATA, list_s::listhead, listNode_s::next, listNode_s::node_data, and list_s::size.

Referenced by barrier_queue_Delete(), syncListDelete(), and syncListRemove().

DATA ListGetHead ( list_p  list  ) 

Definition at line 76 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 30 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 200 of file list.c.

DATA ListPop ( list_p  list  ) 

Definition at line 86 of file list.c.

References DATA, list_s::listhead, listNode_s::next, listNode_s::node_data, and list_s::size.

Referenced by barrier_queue_Pop(), df_Destroy(), df_request_list_Destroy(), and df_request_list_Pop().

DATA ListSearch ( list_p  list,
const int  index 
)

Definition at line 121 of file list.c.

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

Referenced by ams_ManageAgentList(), ams_Print(), AP_QUEUE_SEARCH_TEMPLATE(), AP_QUEUE_STD_DEFN_TEMPLATE(), barrier_queue_Delete(), MC_RetrieveAgent(), MC_WaitRetrieveAgent(), message_queue_SendOutgoing(), syncListDelete(), and syncListRemove().

void ListTerminate ( list_p  list  ) 

Definition at line 46 of file list.c.

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

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


Generated on Fri May 16 14:49:56 2008 for Mobile-C by  doxygen 1.5.4