Function silc_list_init
SYNOPSIS
#define silc_list_init(list, type, field) ...
DESCRIPTION
This macro initializes the SilcList list. The `list' is the defined
list, second argument is the structure of the entries in the list,
and last argument is the pointer in the entry structure that is used
as list member. When using SilcList, you should not touch the
structure member pointer (the `next' for example) manually.
EXAMPLE
struct SilcInternalEntryStruct {
char *dummy;
struct SilcInternalEntryStruct *next; // The list member pointer
};
SilcList list;
silc_list_init(list, struct SilcInternalEntryStruct, next);
|