Change soft-fail to use the config, rather than env
[rbx.git] / shotgun / lib / config_hash.h
blobbeb0fd0cd71c45ed1da8562a0b15ea81fd0b8f62
1 #include <hashtable.h>
2 #include <hashtable_itr.h>
3 #include <bstrlib.h>
5 int ht_config_insert(struct hashtable *ht, bstring key, bstring value);
6 bstring ht_config_search(const struct hashtable *ht, const_bstring key);
7 bstring ht_config_remove(struct hashtable *ht, bstring key);
9 struct hashtable * ht_config_create(unsigned int minsize);
10 void ht_config_destroy(struct hashtable *ht_config);
12 int ht_vconfig_insert(struct hashtable *ht, int *key, void *value);
13 void *ht_vconfig_search(const struct hashtable *ht, const int *key);
14 void *ht_vconfig_remove(struct hashtable *ht, int *key);
16 struct hashtable * ht_vconfig_create(unsigned int minsize);
17 void ht_vconfig_destroy(struct hashtable *ht_config);
19 void ht_vconfig_each(struct hashtable *ht, void (*cb)(int key, void *val));