2 * Definitions for color filters
4 * $Id: color_filters.h,v 1.3 2003/08/18 21:27:10 sahlberg Exp $
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@ethereal.com>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 #ifndef __COLOR_FILTERS_H__
25 #define __COLOR_FILTERS_H__
28 #define MAX_COLOR_FILTER_NAME_LEN 33
29 #define MAX_COLOR_FILTER_STRING_LEN 256
31 #define CFILTERS_CONTAINS_FILTER(filter) \
32 ((filter)->num_of_filters != 0)
34 void colfilter_init(void);
36 gboolean write_filters(void);
37 gboolean revert_filters(void);
39 color_filter_t *new_color_filter(gchar *name, gchar *filter_string);
40 void delete_color_filter(color_filter_t *colorf);
41 gboolean read_other_filters(gchar *path, gpointer arg);
42 gboolean write_other_filters(gchar *path, gboolean only_marked);