aboutsummaryrefslogtreecommitdiffstats
path: root/epan/emem.h
diff options
context:
space:
mode:
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2006-03-11 13:02:41 +0000
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2006-03-11 13:02:41 +0000
commitce5339ef143ac2dfb573984f1df4257eda5ced31 (patch)
treea061daf09d3ae8b6c00768df14ab71473b841743 /epan/emem.h
parenteb2ef02fcc0ccb54b5ce91d85a4cc6235b6fd667 (diff)
give se_trees names so that it is easier to debug and to log how often certain trees are accessed
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17587 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/emem.h')
-rw-r--r--epan/emem.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/emem.h b/epan/emem.h
index 4a4eee91bb..efbe7b9f4a 100644
--- a/epan/emem.h
+++ b/epan/emem.h
@@ -186,6 +186,7 @@ typedef struct _se_tree_node_t {
typedef struct _se_tree_t {
struct _se_tree_t *next;
int type;
+ char *name; /* just a string to make debugging easier */
se_tree_node_t *tree;
} se_tree_t;
extern se_tree_t *se_trees;
@@ -197,7 +198,7 @@ extern se_tree_t *se_trees;
*
* type is : SE_TREE_TYPE_RED_BLACK for a standard red/black tree.
*/
-se_tree_t *se_tree_create(int type);
+se_tree_t *se_tree_create(int type, char *name);
/* This function is used to insert a node indexed by a guint32 key value.
* The data pointer should be allocated by SE allocators so that the
@@ -220,7 +221,7 @@ void *se_tree_lookup32(se_tree_t *se_tree, guint32 key);
* another structure that is also se allocated so that when the structure is
* released, the tree will be completely released as well.
*/
-se_tree_t *se_tree_create_non_persistent(int type);
+se_tree_t *se_tree_create_non_persistent(int type, char *name);
typedef struct _se_tree_key_t {
guint32 length; /*length in guint32 words */