diff options
author | Michael Mann <mmann78@netscape.net> | 2017-06-25 11:48:46 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-06-26 02:48:58 +0000 |
commit | 5c60b517a70cab8138312ec39946f18f3ed75f58 (patch) | |
tree | ed0882fa1aca052246d207b3dcc81b9c5839f7aa /epan/filter_expressions.h | |
parent | 1b7f5d9f798634770656a82aaa2df30f7f01a9b0 (diff) |
Add support for comments for a display filter button
Add a field to the display filter button UAT to allow comments
to be displayed as part of the tooltip to the diplay filter
button
Bug: 13814
Change-Id: I74459e4102856258d31d6429e2fd924a9f798cd5
Reviewed-on: https://code.wireshark.org/review/22390
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/filter_expressions.h')
-rw-r--r-- | epan/filter_expressions.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/filter_expressions.h b/epan/filter_expressions.h index a9af58860a..aaa4322f3f 100644 --- a/epan/filter_expressions.h +++ b/epan/filter_expressions.h @@ -40,6 +40,7 @@ typedef struct filter_expression { gpointer button; /* Filter toolbar (GTK only) */ gchar *label; gchar *expression; + gchar *comment; gboolean enabled; /* Can be set to FALSE by Preferences Dialog */ } filter_expression_t; @@ -55,7 +56,7 @@ WS_DLL_PUBLIC void filter_expression_iterate_expressions(wmem_foreach_func func, */ WS_DLL_PUBLIC filter_expression_t *filter_expression_new(const gchar *label, - const gchar *expr, const gboolean enabled); + const gchar *expr, const gchar *comment, const gboolean enabled); /* Keep the UAT structure local to the filter_expressions */ void filter_expression_register_uat(module_t* pref_module); |