aboutsummaryrefslogtreecommitdiffstats
path: root/epan/expert.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-05-25 11:05:23 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-05-25 11:05:23 +0000
commitccecf5b98be555c41ad0ea33831f5ebd60f766a8 (patch)
treedceb96222d59a49379951ff7700fbbdf03ab1402 /epan/expert.h
parent780efd342ca39915cd8263fec60d66b91377f62e (diff)
Add a convinience function to add expert warnings for not dissected items.
svn path=/trunk/; revision=37391
Diffstat (limited to 'epan/expert.h')
-rw-r--r--epan/expert.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/epan/expert.h b/epan/expert.h
index 62d5ba98ff..58bd9e44fa 100644
--- a/epan/expert.h
+++ b/epan/expert.h
@@ -69,6 +69,18 @@ expert_add_info_format(packet_info *pinfo, proto_item *pi, int group,
int severity, const char *format, ...)
G_GNUC_PRINTF(5, 6);
+/** Add an expert info about not dissected "item"
+ Add an expert info tree to a not dissected protocol item.
+ @patam tvb the tvb with the item.
+ @param pinfo packet info of the currently processed packet
+ @param tree tree to add the item to
+ @param offset in tvb
+ @param length the length of the item.
+ @param severity the expert severity (like PI_WARN - see: proto.h)
+ */
+
+extern void
+expert_add_undecoded_item(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, int length, const int severity);
#ifdef __cplusplus
}
#endif /* __cplusplus */