aboutsummaryrefslogtreecommitdiff
path: root/dict.h
diff options
context:
space:
mode:
authorJuan Cespedes <cespedes@coco.thehackers.org>2009-07-03 10:39:34 +0200
committerJuan Cespedes <cespedes@coco.thehackers.org>2009-07-03 10:39:34 +0200
commit8d1b92ba755f6d6229f5e230fc43d958b13836f8 (patch)
tree5e54278bab2b35d5a5ad634213dbcb32706cca7d /dict.h
parent03192f890af95bf9abf5ea1c3dc0998f6b12550d (diff)
downloadltrace-8d1b92ba755f6d6229f5e230fc43d958b13836f8.tar.gz
Some minor fixes
Diffstat (limited to 'dict.h')
-rw-r--r--dict.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/dict.h b/dict.h
index e4bf7b8..a70c3d5 100644
--- a/dict.h
+++ b/dict.h
@@ -2,14 +2,14 @@
Dictionary based on code by Morten Eriksen <mortene@sim.no>.
*/
-struct dict;
+typedef struct dict Dict;
-extern struct dict *dict_init(unsigned int (*key2hash) (void *),
+extern Dict *dict_init(unsigned int (*key2hash) (void *),
int (*key_cmp) (void *, void *));
-extern void dict_clear(struct dict *d);
-extern int dict_enter(struct dict *d, void *key, void *value);
-extern void *dict_find_entry(struct dict *d, void *key);
-extern void dict_apply_to_all(struct dict *d,
+extern void dict_clear(Dict *d);
+extern int dict_enter(Dict *d, void *key, void *value);
+extern void *dict_find_entry(Dict *d, void *key);
+extern void dict_apply_to_all(Dict *d,
void (*func) (void *key, void *value, void *data),
void *data);
@@ -17,4 +17,4 @@ extern unsigned int dict_key2hash_string(void *key);
extern int dict_key_cmp_string(void *key1, void *key2);
extern unsigned int dict_key2hash_int(void *key);
extern int dict_key_cmp_int(void *key1, void *key2);
-extern struct dict * dict_clone(struct dict *old, void * (*key_clone)(void*), void * (*value_clone)(void*));
+extern Dict * dict_clone(Dict *old, void * (*key_clone)(void*), void * (*value_clone)(void*));