Change from Ed Meaney - write capture files in binary, rather than ASCII
[obnox/wireshark/wip.git] / prefs.h
1 /* prefs.h
2  * Definitions for preference handling routines
3  *
4  * $Id: prefs.h,v 1.15 2000/01/06 07:33:22 guy 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 __PREFS_H__
27 #define __PREFS_H__
28
29 #define PR_DEST_CMD  0
30 #define PR_DEST_FILE 1
31
32 #ifndef __GTK_H__
33 #include <gtk/gtk.h>
34 #endif
35
36 typedef struct _e_prefs {
37   gint     pr_format;
38   gint     pr_dest;
39   gchar   *pr_file;
40   gchar   *pr_cmd;
41   GList   *col_list;
42   gint     num_cols;
43   GdkColor st_client_fg, st_client_bg, st_server_fg, st_server_bg;
44   gboolean      gui_scrollbar_on_right;
45   gboolean      gui_plist_sel_browse;
46   gboolean      gui_ptree_sel_browse;
47   gint          gui_ptree_line_style;
48   gint          gui_ptree_expander_style;
49 } e_prefs;
50
51 extern e_prefs prefs;
52
53 e_prefs* read_prefs(char **);
54 int write_prefs(char **);
55
56 #endif /* prefs.h */