1#ifndef IRCBOT_HASHTABLE_H
2#define IRCBOT_HASHTABLE_H
42 void *obj,
void (*deleter)(
void *))
43 CMETHOD ATTR_NONNULL((2)) ATTR_NONNULL((3));
52DECLEXPORT
int IBHashTable_delete(
IBHashTable *self, const
char *key)
53 CMETHOD ATTR_NONNULL((2));
60DECLEXPORT
size_t IBHashTable_count(const
IBHashTable *self) CMETHOD ATTR_PURE;
68DECLEXPORT
void *IBHashTable_get(const
IBHashTable *self, const
char *key)
69 CMETHOD ATTR_NONNULL((2));
80 CMETHOD ATTR_RETNONNULL;
A hash table storing any data objects using string keys.
void IBHashTable_set(IBHashTable *self, const char *key, void *obj, void(*deleter)(void *))
Set a new object for a key.
IBHashTable * IBHashTable_create(uint8_t bits)
IBHashTable default constructor.
An iterator over the contents of an IBHashTable.
Common preprocessor declarations for libircbot.