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

#include "../include/macros.h"
#include "../mc_list/list.h"
#include "../include/mc_rwlock.h"

Go to the source code of this file.

Data Structures

struct  syncListNode_s

Typedefs

typedef struct syncListNode_s syncListNode_t
typedef syncListNode_tsyncListNode_p

Functions

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

Typedef Documentation

Definition at line 23 of file sync_list.h.


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().

syncListNode_t* syncListGet ( int  id,
list_t list 
)
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