silc_dlist_get

SYNOPSIS

    static inline
    void *silc_dlist_get(SilcDList list);

DESCRIPTION

Returns current entry from the list and moves the list pointer forward so that calling this next time returns the next entry from the list. This can be used to traverse the list. Return SILC_LIST_END when the entire list has been traversed. Later, silc_list_start (or silc_dlist_end) must be called again when re-starting list traversing.

EXAMPLE

    // Traverse the list from the beginning to the end
    silc_dlist_start(list)
    while ((entry = silc_dlist_get(list)) != SILC_LIST_END) {
      ...
    }