diff options
author | Olivier Abad <oabad@noos.fr> | 2002-09-23 19:09:52 +0000 |
---|---|---|
committer | Olivier Abad <oabad@noos.fr> | 2002-09-23 19:09:52 +0000 |
commit | 1b89d48835b485bc535c9994bb3431bdd71063e8 (patch) | |
tree | 6ec4a83fd50769bea03ddb77d3d3765a736e7699 /color.h | |
parent | 37c599b47d1e739704173a2a1d32c228b434ca16 (diff) |
Change to color filters :
- moved color_filter_t in color.h
- change color_filter_t to use color_t instead of GdkColor
This changed allowed to remove the last gtk includes in file.c. It is
now completely free of any gtk related code.
svn path=/trunk/; revision=6324
Diffstat (limited to 'color.h')
-rw-r--r-- | color.h | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* color.h * Definitions for "toolkit-independent" colors * - * $Id: color.h,v 1.2 2002/08/28 21:00:06 jmayer Exp $ + * $Id: color.h,v 1.3 2002/09/23 19:09:47 oabad Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -26,6 +26,8 @@ #ifndef __COLOR_H__ #define __COLOR_H__ +#include "epan/dfilter/dfilter.h" + /* * Data structure holding RGB value for a color. * @@ -42,4 +44,21 @@ typedef struct { guint16 blue; } color_t; +/* 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 */ +} color_filter_t; + +/* List of all color filters. */ +extern GSList *filter_list; + +void +filter_list_prime_edt(epan_dissect_t *edt); + #endif |