aboutsummaryrefslogtreecommitdiffstats
path: root/epan/expert.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-09-07 15:00:11 -0400
committerAnders Broman <a.broman58@gmail.com>2015-09-08 04:45:19 +0000
commitbcba9ba0d3341e3ad1c506d7dd9c762e5129a9b0 (patch)
tree4d355f2abccf2e8641e67fe32139447e51ff2456 /epan/expert.h
parent44a0bafd15a8d1e606f87198f679a5fec1a4bfd2 (diff)
Add API to expose "expert info" summary.
This is intended for use in expert_add_info_format or proto_tree_add_expert_format to get the "base" string to then append additional information, but I'm sure other uses can be found. Similar to some of the proto_get_xxx APIs, but still only "create as needed". Change-Id: Ib76e6ed557c2ae41e0a40957a9efa4bf485909da Reviewed-on: https://code.wireshark.org/review/10420 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/expert.h')
-rw-r--r--epan/expert.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/expert.h b/epan/expert.h
index e1d9ff9106..6bb14cc301 100644
--- a/epan/expert.h
+++ b/epan/expert.h
@@ -176,6 +176,13 @@ WS_DLL_PUBLIC expert_module_t *expert_register_protocol(int id);
*/
WS_DLL_PUBLIC void expert_deregister_protocol (expert_module_t *module);
+/**
+ * Get summary text of an expert_info field.
+ * This is intended for use in expert_add_info_format or proto_tree_add_expert_format
+ * to get the "base" string to then append additional information
+ */
+WS_DLL_PUBLIC const gchar* expert_get_summary(expert_field *eiindex);
+
/** Register a expert field array.
@param module the protocol handle from expert_register_protocol()
@param ei the ei_register_info array