/home/dko/Projects/mobilec/src/mc_sync/sync_list.c File Reference

#include <pthread.h>
#include "sync_list.h"
#include "../mc_list/list.h"
#include "../include/mc_error.h"

Go to the source code of this file.

Functions

int syncListNodeInit (struct syncListNode_s *node)
struct syncListNode_ssyncListNodeNew (void)
int syncListNodeDestroy (struct syncListNode_s *node)
int syncListAddNode (struct syncListNode_s *node, list_t *list)
int syncListNew (int id, list_t *list)
int syncListDelete (int id, list_t *list)
syncListNode_tsyncListRemove (int id, list_t *list)
int syncListNode_CmpID (int *key, syncListNode_t *node)

Function Documentation

int syncListAddNode ( struct syncListNode_s node,
list_t list 
)

Definition at line 56 of file sync_list.c.

References syncListNode_s::id, ListAdd(), ListSearchCB(), and syncListNode_CmpID().

Referenced by MC_SyncInit(), and syncListNew().

int syncListDelete ( int  id,
list_t list 
)

Definition at line 83 of file sync_list.c.

References ListDeleteCB(), MC_ERR_NOT_FOUND, syncListNode_CmpID(), and syncListNodeDestroy().

Referenced by MC_SyncDelete().

int syncListNew ( int  id,
list_t list 
)

Definition at line 72 of file sync_list.c.

References syncListNode_s::id, syncListAddNode(), and syncListNodeInit().

int syncListNode_CmpID ( int *  key,
syncListNode_t node 
)
int syncListNodeDestroy ( struct syncListNode_s node  ) 
int syncListNodeInit ( struct syncListNode_s node  ) 
struct syncListNode_s* syncListNodeNew ( void   )  [read]
syncListNode_t* syncListRemove ( int  id,
list_t list 
)

Definition at line 94 of file sync_list.c.

References ListDeleteCB(), and syncListNode_CmpID().

Generated on Fri Jun 17 16:59:07 2011 for Mobile-C by  doxygen 1.6.3