| 68 | } |
| 69 | |
| 70 | void *oidmap_put(struct oidmap *map, void *entry) |
| 71 | { |
| 72 | struct oidmap_entry *to_put = entry; |
| 73 | |
| 74 | if (!map->map.cmpfn) |
| 75 | oidmap_init(map, 0); |
| 76 | |
| 77 | hashmap_entry_init(&to_put->internal_entry, oidhash(&to_put->oid)); |
| 78 | return hashmap_put(&map->map, &to_put->internal_entry); |
| 79 | } |