Function silc_list_init_prev
SYNOPSIS
#define silc_list_init_prev(list, type, nextfield, prevfield) ...
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 two arguments are the pointers in the structure that is used
as next and prev list members. When using SilcList you must not
touch the structure member pointers manually.
Having both next and prev pointers makes it possible to traverse
list from both ends of the list (from start to end, and from end
to start).
EXAMPLE
struct SilcInternalEntryStruct {
char *dummy;
struct SilcInternalEntryStruct *next; // The list member pointer
struct SilcInternalEntryStruct *prev; // The list member pointer
};
SilcList list;
silc_list_init_prev(list, struct SilcInternalEntryStruct, next, prev);
|