aboutsummaryrefslogtreecommitdiffstats
path: root/color.h
diff options
context:
space:
mode:
authorOlivier Abad <oabad@noos.fr>2002-09-23 19:09:52 +0000
committerOlivier Abad <oabad@noos.fr>2002-09-23 19:09:52 +0000
commit1b89d48835b485bc535c9994bb3431bdd71063e8 (patch)
tree6ec4a83fd50769bea03ddb77d3d3765a736e7699 /color.h
parent37c599b47d1e739704173a2a1d32c228b434ca16 (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.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/color.h b/color.h
index a94526dfad..9eef8f8edd 100644
--- a/color.h
+++ b/color.h
@@ -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