aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2014-12-08 21:40:24 -0500
committerAnders Broman <a.broman58@gmail.com>2014-12-10 09:04:00 +0000
commita97176853010e5e39492d8a1fea79799ef43758b (patch)
tree2d4d2da0fb11863ce802cdd2f388e0959c3fe86b /epan/proto.h
parente050ad27a4a7b330bf7c4cb223958b0e9f656deb (diff)
Refactor "color" conversation filters
Have dissectors register their desire to be part of "color" conversation filters and have the GUI use that registered list. GUI actually using API will come in a separate commit. Change-Id: I5ffe922d97894fe7bf3182056b76ab5839a9461a Reviewed-on: https://code.wireshark.org/review/5658 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/proto.h b/epan/proto.h
index 490c415a33..dcc97f248a 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -2054,6 +2054,12 @@ WS_DLL_PUBLIC const char *proto_get_protocol_filter_name(const int proto_id);
WS_DLL_PUBLIC void proto_get_frame_protocols(const wmem_list_t *layers,
gboolean *is_ip, gboolean *is_tcp, gboolean *is_udp, gboolean *is_sctp, gboolean *is_ssl);
+/** Find a protocol by name in a layer list.
+ * @param layers Protocol layer list
+ * @param proto_name Name of protocol to find
+ */
+WS_DLL_PUBLIC gboolean proto_is_frame_protocol(const wmem_list_t *layers, const char* proto_name);
+
/** Enable / Disable protocol of the given item number.
@param proto_id protocol id (0-indexed)
@param enabled enable / disable the protocol */