aboutsummaryrefslogtreecommitdiffstats
path: root/epan/expert.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2013-06-20 22:25:33 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2013-06-20 22:25:33 +0000
commit369658c499037ce52de535f8390b472588dabc4d (patch)
treeecd284b000e623cfa84b052d465ea91255ea4cbf /epan/expert.c
parentd7856ef30457ce7d89ab0c380ae7e19db772c396 (diff)
inform expert info layer about the current number of packet comments
when the last comment is removed and we have no other expert info, the maximum severity is changed from comment to none svn path=/trunk/; revision=50091
Diffstat (limited to 'epan/expert.c')
-rw-r--r--epan/expert.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/expert.c b/epan/expert.c
index 901d12cf6a..9022ca2012 100644
--- a/epan/expert.c
+++ b/epan/expert.c
@@ -145,6 +145,13 @@ expert_get_highest_severity(void)
return highest_severity;
}
+void
+expert_update_comment_count(guint64 count)
+{
+ if (count==0 && highest_severity==PI_COMMENT)
+ highest_severity = 0;
+}
+
expert_module_t *expert_register_protocol(int id)
{
expert_module_t *module;