SilcHashTableList

NAME

    typedef struct SilcHashTableListStruct SilcHashTableList;

DESCRIPTION

This structure is used to tarverse the hash table. This structure is given as argument to the silc_hash_table_list function to initialize it and then used to traverse the hash table with the silc_hash_table_get function. It needs not be allocated or freed.

EXAMPLE

    SilcHashTableList htl;
    silc_hash_table_list(hash_table, &htl);
    while (silc_hash_table_get(&htl, (void *)&key, (void *)&context))
      ...
    silc_hash_table_list_reset(&htl);

SOURCE

typedef struct SilcHashTableListStruct SilcHashTableList;

/* List structure to traverse the hash table. */
struct SilcHashTableListStruct {
  SilcHashTable ht;
  void *entry;
  unsigned int index        : 31;
  unsigned int auto_rehash  : 1;
};