Main Page | Modules | Data Structures | File List | Data Fields | Related Pages

List_ Struct Reference
[Single Linked List]

Define a structure for linked lists. More...

#include <linklist.h>


Data Fields

T_RDWR rwlock
 Struct for Locking.
int size
 No.
int(* match )(const void *key1, const void *key2)
 Callback Match function.
void(* destroy )(void *data)
 Destroy function for one element.
ListElmthead
 Pointer to first element.
ListElmttail
 Pointer to last element.


Detailed Description

Define a structure for linked lists.

Definition at line 55 of file linklist.h.


Field Documentation

void(* List_::destroy)(void *data)
 

Destroy function for one element.

Parameters:
data destroy element identified by data pointer

Referenced by list_destroy(), list_init(), and list_remove_each_if_func_eq_1().

int(* List_::match)(const void *key1, const void *key2)
 

Callback Match function.

Compare two objects and return the result

Parameters:
key1 Object 1
key2 Object 2
Returns:
1 if objects are equal, and 0 if not

Referenced by list_init(), list_internal_lookup(), and list_remove().

int List_::size
 

No.

of elements in this list

Definition at line 57 of file linklist.h.

Referenced by list_init(), list_ins_next(), and list_rem_next().


The documentation for this struct was generated from the following file:
Generated on Wed Mar 30 13:43:27 2005 for Mntd by  doxygen 1.3.9.1