Home | History | Annotate | Download | only in util

Lines Matching refs:item

151    struct keymap_item *item;
155 item = (struct keymap_item *) cso_hash_iter_data(iter);
156 if (!memcmp(item->key, key, map->key_size))
192 struct keymap_item *item;
201 item = hash_table_find_item(map, key, key_hash);
202 if (item) {
203 /* call delete callback for old entry/item */
204 map->delete_func(map, item->key, item->value, user);
205 item->value = (void *) data;
209 item = MALLOC_STRUCT(keymap_item);
210 if (!item)
213 item->key = mem_dup(key, map->key_size);
214 item->value = (void *) data;
216 iter = cso_hash_insert(map->cso, key_hash, item);
218 FREE(item);
235 struct keymap_item *item;
243 item = hash_table_find_item(map, key, key_hash);
244 if (!item)
247 return item->value;
261 struct keymap_item *item;
273 item = hash_table_item(iter);
274 assert(item);
275 if (!item)
277 map->delete_func(map, item->key, item->value, user);
278 FREE(item->key);
279 FREE(item);
295 struct keymap_item *item;
303 item = (struct keymap_item *)
305 map->delete_func(map, item->key, item->value, user);
306 FREE(item->key);
307 FREE(item);