aboutsummaryrefslogtreecommitdiffstats
path: root/epan/epan.h
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-11 18:08:03 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-11 18:08:03 +0000
commit261a8406bc5694f05a78cc4bee2c2d854a5502ab (patch)
treefe74758560206583b78f43438252f81d2284c71b /epan/epan.h
parent8b9d2f74903b1c10c046843dedb4fea59450c283 (diff)
TRY_TO_FAKE_THIS_ITEM now fakes FT_PROTOCOL per default. If there are any users (e.g. proto_hier_stats.c, others?) that relies on FT_PROTOCOL nodes being created they'll now need to call the newly introduced epan_dissect_fake_protocols() to disable this optimization.
Also make use of TRY_TO_FAKE_THIS_ITEM in proto_tree_add_text_node(), proto_tree_add_none_format() and proto_tree_add_protocol_format(). svn path=/trunk/; revision=29380
Diffstat (limited to 'epan/epan.h')
-rw-r--r--epan/epan.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/epan.h b/epan/epan.h
index d70c613908..2d5396f4cd 100644
--- a/epan/epan.h
+++ b/epan/epan.h
@@ -90,6 +90,10 @@ epan_get_version(void);
epan_dissect_t*
epan_dissect_new(gboolean create_proto_tree, gboolean proto_tree_visible);
+/* Indicate whether we should fake protocols or not */
+void
+epan_dissect_fake_protocols(epan_dissect_t *edt, gboolean fake_protocols);
+
/* run a single packet dissection */
void
epan_dissect_run(epan_dissect_t *edt, void* pseudo_header,