A lengthy patch to add the wiretap library. Wiretap is not used by default
[obnox/wireshark/wip.git] / filter.h
1 /* filter.h
2  * Definitions for packet filter window
3  *
4  * $Id: filter.h,v 1.4 1998/10/13 02:10:55 gerald Exp $
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@zing.org>
8  * Copyright 1998 Gerald Combs
9  *
10  * 
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  * 
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  * 
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  */
25
26 #ifndef __FILTER_H__
27 #define __FILTER_H__
28
29 typedef struct _filter_def {
30   char *name;
31   char *strval;
32 } filter_def;
33
34 typedef struct _filter_cb_data {
35   GList     *fl;
36   GtkWidget *win;
37 } filter_cb_data;
38
39 GtkWidget *filter_prefs_show(GtkWidget *);
40 void       filter_sel_list_cb(GtkWidget *, gpointer);
41 void       filter_sel_new_cb(GtkWidget *, gpointer);
42 void       filter_sel_chg_cb(GtkWidget *, gpointer);
43 void       filter_sel_copy_cb(GtkWidget *, gpointer);
44 void       filter_sel_del_cb(GtkWidget *, gpointer);
45 void       filter_prefs_ok(GtkWidget *);
46 void       filter_prefs_save(GtkWidget *);
47 void       filter_prefs_cancel(GtkWidget *);
48
49 #endif /* filter.h */