HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / epan / filter_expressions.h
blob626c388cfef709d302b9cb5457bbbec9ea104b5d
1 /* filter_expressions.h
2 * Submitted by Edwin Groothuis <wireshark@mavetju.org>
4 * $Id$
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 #ifndef __FILTER_EXPRESSIONS_H__
26 #define __FILTER_EXPRESSIONS_H__
28 #include "ws_symbol_export.h"
30 #ifdef __cplusplus
31 extern "C" {
32 #endif /* __cplusplus */
34 struct filter_expression {
35 gpointer button; /* Filter toolbar */
36 gchar *label;
37 gchar *expression;
39 gint index;
40 gboolean enabled; /* Can be set to FALSE by Preferences Dialog */
41 gboolean deleted; /* Can be set to TRUE by Preferences Dialog (GTK+ only) */
43 struct filter_expression *next;
46 WS_DLL_PUBLIC struct filter_expression **pfilter_expression_head;
48 WS_DLL_PUBLIC
49 struct filter_expression *filter_expression_new(const gchar *label,
50 const gchar *expr, const gboolean enabled);
52 void filter_expression_init(gboolean prefs);
54 #ifdef __cplusplus
56 #endif /* __cplusplus */
58 #endif /* __FILTER_EXPRESSIONS_H__ */