diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-11-30 05:33:05 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-11-30 05:33:05 +0000 |
commit | e0597caf79defd2c0604cdd841bab09b4c0443b3 (patch) | |
tree | 1e41f86e4000a86a470c7dd837904f3d71b3b74b /colors.h | |
parent | bbf5cddcd55ade8f450bf2d1ae476371d7d7219a (diff) |
Stuff in "colors.c" largely need work only on a "colfilter", not on a
"capture_file" - when handed a "capture_file *", it only cared about the
"colors" entry. The only time it cares about a "capture_file" is when
it's actually filtering the packets, as it needs to hand the
"capture_file *" to "colorize_packets()".
Make the stuff exported by "colors.c" in "colors.h" take "colfilter *"
arguments (or return a "colfilter *" to be stuffed into a
"capture_file").
svn path=/trunk/; revision=1162
Diffstat (limited to 'colors.h')
-rw-r--r-- | colors.h | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -1,7 +1,7 @@ /* colors.h * Definitions for color structures and routines * - * $Id: colors.h,v 1.6 1999/11/30 04:23:06 guy Exp $ + * $Id: colors.h,v 1.7 1999/11/30 05:32:58 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -38,8 +38,8 @@ #define MAX_COLOR_FILTER_NAME_LEN 33 #define MAX_COLOR_FILTER_STRING_LEN 256 -#define CFILTERS_CONTAINS_FILTER(cf) \ - ((cf)->colors->num_of_filters != 0) +#define CFILTERS_CONTAINS_FILTER(filter) \ + ((filter)->num_of_filters != 0) extern GdkColor WHITE; extern GdkColor BLACK; @@ -60,12 +60,9 @@ typedef struct _colfilter { gint row_selected; /* row in color_filters that is selected */ } colfilter; +colfilter *colfilter_new(void); -typedef struct _capture_file cap_file; - -void colors_init(cap_file *cf); - -color_filter_t *color_filter(cap_file *cf, gint n); +color_filter_t *color_filter(colfilter *filter, gint n); /* ===================== USER INTERFACE ====================== */ |