aboutsummaryrefslogtreecommitdiffstats
path: root/epan/color_dissector_filters.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2014-12-17 21:55:52 -0500
committerAnders Broman <a.broman58@gmail.com>2014-12-19 07:59:28 +0000
commit1f031808e16eeb56d7c822dbe7ebe2fdc7652e00 (patch)
tree798d3859ef14b3de75a7abe0791e4a3d7b119aa3 /epan/color_dissector_filters.h
parent792c01ab1ab937e581a6d77ac2782e9483a9ce3a (diff)
Use new color_dissector_filters.[ch] to refactor (color) conversation generation in GTK menus.
Change-Id: I5868a40b71a989a3a1522cb091064bb0aaec6daf Reviewed-on: https://code.wireshark.org/review/5828 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/color_dissector_filters.h')
-rw-r--r--epan/color_dissector_filters.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/epan/color_dissector_filters.h b/epan/color_dissector_filters.h
index 2393700ee7..e05be0ef2d 100644
--- a/epan/color_dissector_filters.h
+++ b/epan/color_dissector_filters.h
@@ -39,16 +39,19 @@ typedef gboolean (*is_color_conv_valid_func)(packet_info *pinfo);
Filter needs to be freed after use */
typedef gchar* (*build_color_conv_string_func)(packet_info *pinfo);
+#define MAX_NUM_COLOR_CONVERSATION_COLORS 10
/** register a dissector filter */
-WS_DLL_PUBLIC void register_color_conversation_filter(const char *name, is_color_conv_valid_func is_filter_valid, build_color_conv_string_func build_filter_string);
-
+WS_DLL_PUBLIC void register_color_conversation_filter(const char *proto_name, const char *display_name,
+ is_color_conv_valid_func is_filter_valid, build_color_conv_string_func build_filter_string);
+WS_DLL_PUBLIC struct color_conversation_filter_s* find_color_conversation_filter(const char *proto_name);
/*** THE FOLLOWING SHOULD NOT BE USED BY ANY DISSECTORS!!! ***/
typedef struct color_conversation_filter_s {
- const char * name;
+ const char * proto_name;
+ const char * display_name;
is_color_conv_valid_func is_filter_valid;
build_color_conv_string_func build_filter_string;
} color_conversation_filter_t;