/home/dko/projects/mobilec/trunk/src/mc_list/list.c File Reference

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

Go to the source code of this file.

Functions

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


Function Documentation

int list_pGetSize ( list_p  list  ) 

Definition at line 70 of file list.c.

References list_s::size.

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.

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