Lines Matching defs:ids
76 void ids__free(struct hashmap *ids)
81 if (ids == NULL)
84 hashmap__for_each_entry(ids, cur, bkt) {
89 hashmap__free(ids);
92 int ids__insert(struct hashmap *ids, const char *id)
98 ret = hashmap__set(ids, id, data_ptr, &old_key, &old_data);
144 return ids__insert(ctx->ids, id);
168 ret = hashmap__set(ctx->ids, id, data_ptr, &old_key, &old_data);
207 ret = hashmap__set(ctx->ids, name, data_ptr, &old_key, &old_data);
224 return hashmap__find(ctx->ids, id, data) ? 0 : -1;
234 hashmap__for_each_entry(needles->ids, cur, bkt) {
285 hashmap__delete(ctx->ids, id, &old_key, &old_val);
298 ctx->ids = hashmap__new(key_hash, key_equal, NULL);
299 if (IS_ERR(ctx->ids)) {
312 hashmap__for_each_entry(ctx->ids, cur, bkt) {
316 hashmap__clear(ctx->ids);
328 hashmap__for_each_entry(ctx->ids, cur, bkt) {
332 hashmap__free(ctx->ids);
419 /* Does the event 'id' parse? Determine via ctx->ids if possible. */
425 if (hashmap__find(ctx->ids, id, /*value=*/NULL))