silcdlist.html
SILC Dynamic List Interface Header: silcdlist.h
DESCRIPTION
SILC Dynamic List API can be used to add opaque contexts to list that
will automatically allocate list entries. Normal SILC List API cannot
be used for this purpose because in that case the context passed to the
list must be defined as list structure already. This is not the case in
SilcDList.
This is slower than SilcList because this requires one extra memory
allocation when adding new entries to the list. The context is probably
allocated already and the new list entry requires one additional memory
allocation. The memory allocation and freeing is done automatically in
the API and does not show to the caller.
SilcDList
silc_dlist_init
silc_dlist_uninit
silc_dlist_count
silc_dlist_start
silc_dlist_end
silc_dlist_add
silc_dlist_del
silc_dlist_get
|