silc_hash_table_del_by_context_ext

SYNOPSIS

    SilcBool
    silc_hash_table_del_by_context_ext(SilcHashTable ht, void *key,
                                       void *context,
                                       SilcHashFunction hash,
                                       void *hash_user_context,
                                       SilcHashCompare compare,
                                       void *compare_user_context,
                                       SilcHashDestructor destructor,
                                       void *destructor_user_context);

DESCRIPTION

Same as silc_hash_table_del but verifies that the context associated with the `key' matches the `context'. This is handy to use with hash tables that may have duplicate keys. In that case the `context' may be used to check whether the correct entry is being deleted.

The `hash' and `hash_user_context' are application specified hash function. If not provided the hash table's default is used. The `compare' and `compare_user_context' are application specified comparing function. If not provided the hash table's default is used. The `destructor' and `destructor_user_context' are application specific destructor function.