Lines Matching refs:key
43 typedef size_t (*hashmap_hash_fn)(long key, void *ctx);
62 long key; member
129 int hashmap_insert(struct hashmap *map, long key, long value,
133 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ argument
134 hashmap_insert((map), (long)(key), (long)(value), (strategy), \
138 #define hashmap__add(map, key, value) \ argument
139 hashmap__insert((map), (key), (value), HASHMAP_ADD, NULL, NULL)
141 #define hashmap__set(map, key, value, old_key, old_value) \ argument
142 hashmap__insert((map), (key), (value), HASHMAP_SET, (old_key), (old_value))
144 #define hashmap__update(map, key, value, old_key, old_value) \ argument
145 hashmap__insert((map), (key), (value), HASHMAP_UPDATE, (old_key), (old_value))
147 #define hashmap__append(map, key, value) \ argument
148 hashmap__insert((map), (key), (value), HASHMAP_APPEND, NULL, NULL)
150 bool hashmap_delete(struct hashmap *map, long key, long *old_key, long *old_value);
152 #define hashmap__delete(map, key, old_key, old_value) \ argument
153 hashmap_delete((map), (long)(key), \
157 bool hashmap_find(const struct hashmap *map, long key, long *value);
159 #define hashmap__find(map, key, value) \ argument
160 hashmap_find((map), (long)(key), hashmap_cast_ptr(value))
198 if (map->equal_fn(cur->key, (_key), map->ctx))
206 if (map->equal_fn(cur->key, (_key), map->ctx))