aboutsummaryrefslogtreecommitdiffstats
path: root/epan/emem.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-03-11 13:02:41 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-03-11 13:02:41 +0000
commit27de4cfd3916b5c3ca3f1c294ba21faef1d7e682 (patch)
treea061daf09d3ae8b6c00768df14ab71473b841743 /epan/emem.h
parentfb48a75091608b08bea5f4f4a0c0f6cb4633118d (diff)
downloadwireshark-27de4cfd3916b5c3ca3f1c294ba21faef1d7e682.tar.gz
wireshark-27de4cfd3916b5c3ca3f1c294ba21faef1d7e682.tar.bz2
wireshark-27de4cfd3916b5c3ca3f1c294ba21faef1d7e682.zip
give se_trees names so that it is easier to debug and to log how often certain trees are accessed
svn path=/trunk/; revision=17587
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 */