1 #include <ccan/hashtable/hashtable.h>
2 #include <ccan/hashtable/hashtable.c>
12 static bool fn_foo_bar(struct foo *foo, struct bar *bar)
17 static bool fn_const_foo_bar(const struct foo *foo, struct bar *bar)
22 static bool fn_foo_const_bar(struct foo *foo, const struct bar *bar)
27 static bool fn_const_foo_const_bar(const struct foo *foo,
28 const struct bar *bar)
33 static bool fn_void_void(void *foo, void *bar)
40 struct hashtable *ht = NULL;
41 struct bar *bar = NULL;
43 hashtable_traverse(ht, struct foo, fn_foo_bar, bar);
44 hashtable_traverse(ht, struct foo, fn_const_foo_bar, bar);
45 hashtable_traverse(ht, struct foo, fn_foo_const_bar, bar);
46 hashtable_traverse(ht, struct foo, fn_const_foo_const_bar, bar);
47 hashtable_traverse(ht, struct foo, fn_void_void, bar);