From c3cba6617ba632e6ccaf9997112d95895848f26f Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 24 Jul 2004 02:29:14 +0000 Subject: Move the color-filter related stuff out of "color.h" into "color_filters.h", as that's the appropriate place for it - "color.h" should just deal with "color_t". svn path=/trunk/; revision=11503 --- color_filters.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'color_filters.h') diff --git a/color_filters.h b/color_filters.h index 9b5aa2a034..f304047638 100644 --- a/color_filters.h +++ b/color_filters.h @@ -27,6 +27,23 @@ /** @file * Color filters. */ +#include "epan/dfilter/dfilter.h" + +/* Data for a color filter. */ +typedef struct _color_filter { + gchar *filter_name; /* name of the filter */ + gchar *filter_text; /* text of the filter expression */ + color_t bg_color; /* background color for packets that match */ + color_t fg_color; /* foreground color for packets that match */ + dfilter_t *c_colorfilter; /* compiled filter expression */ + void *edit_dialog; /* if filter is being edited, dialog + * box for it */ + gboolean marked; /* set if the filter is marked in the color dialog box */ +} color_filter_t; + +/* List of all color filters. */ +extern GSList *filter_list; +extern GSList *removed_filter_list; /** Init the color filters. */ void colfilter_init(void); @@ -76,4 +93,13 @@ gboolean read_other_filters(gchar *path, gpointer arg); */ gboolean write_other_filters(gchar *path, gboolean only_marked); +/** Add a color filter. + * + * @param colorf the new color filter + * @param arg the color filter widget + */ +void color_add_filter_cb (color_filter_t *colorf, gpointer arg); + +void filter_list_prime_edt(epan_dissect_t *edt); + #endif -- cgit v1.2.1