Lines Matching refs:table
28 * Create a new hash table with string key and talloc pointer value with
36 * Add a new value @talloc_ptr of type @type into the table.
38 * If the @key already exist in the table and @override is true,
42 * removed from the hash table.
48 errno_t _sss_ptr_hash_add(hash_table_t *table,
55 * Add a new value @talloc_ptr of type @type into the table.
58 * removed from the hash table.
64 #define sss_ptr_hash_add(table, key, talloc_ptr, type) \
65 _sss_ptr_hash_add(table, key, talloc_ptr, #type, false)
68 * Add a new value @talloc_ptr of type @type into the table.
70 * If the @key already exists in the table, its value is
72 * are automatically removed from the hash table.
77 #define sss_ptr_hash_add_or_override(table, key, talloc_ptr, type) \
78 _sss_ptr_hash_add(table, key, talloc_ptr, #type, true)
80 void *_sss_ptr_hash_lookup(hash_table_t *table,
85 * Lookup @key in the table and return its value as typed to @type.
91 #define sss_ptr_hash_lookup(table, key, type) \
92 (type *)_sss_ptr_hash_lookup(table, key, #type)
95 * Delete @key from table. If @free_value is true then also the value
98 void sss_ptr_hash_delete(hash_table_t *table,
103 * Delete all keys from the table. If @free_value sis true then also
107 void sss_ptr_hash_delete_all(hash_table_t *table,
111 * @return true If @key is present in the table.
114 bool sss_ptr_hash_has_key(hash_table_t *table,