summaryrefslogtreecommitdiff
path: root/epan/emem.h
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2006-03-07 01:15:29 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2006-03-07 01:15:29 +0000
commit8dbad83e5ca2173a1c4c7aa89ad890e7209348a3 (patch)
treeec6b70ce3e0947ed01ba70000a869dc35101a4f6 /epan/emem.h
parent0c8b1090f4ff8b76d94ace0c009e8858feb3c1c7 (diff)
downloadwireshark-8dbad83e5ca2173a1c4c7aa89ad890e7209348a3.tar.gz
Add a hash table with string keys based on the red/black tree.
svn path=/trunk/; revision=17485
Diffstat (limited to 'epan/emem.h')
-rw-r--r--epan/emem.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/epan/emem.h b/epan/emem.h
index d09ea557d3..34c78cd113 100644
--- a/epan/emem.h
+++ b/epan/emem.h
@@ -261,4 +261,19 @@ void se_tree_insert32_array(se_tree_t *se_tree, se_tree_key_t *key, void *data);
*/
void *se_tree_lookup32_array(se_tree_t *se_tree, se_tree_key_t *key);
+/*
+ * A hash table with string keys based on the red/black tree
+ */
+typedef struct _se_tree_t se_string_hash_t;
+
+/* Create a new string based hash table */
+se_string_hash_t* se_string_hash_new(void);
+
+/* Insert a new value under a string key */
+void se_string_hash_insert(se_string_hash_t* h, const gchar* k, void* v);
+
+/* Lookup the value under a string key */
+void* se_string_hash_lookup(se_string_hash_t* h, const gchar* k);
+
+
#endif /* emem.h */