aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/recent.h
blob: bf317f935cc1f519068c755e585ca738e14e17be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* recent.h
 * Definitions for recent "preference" handling routines
 * Copyright 2004, Ulf Lamping <ulf.lamping@web.de>
 *
 * $Id: recent.h,v 1.1 2004/01/19 00:42:11 ulfl Exp $
 *
 * Ethereal - Network traffic analyzer
 * By Gerald Combs <gerald@ethereal.com>
 * Copyright 1998 Gerald Combs
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

#ifndef __RECENT_H__
#define __RECENT_H__

#include <glib.h>


#define RECENT_KEY_CAPTURE_FILE         "recent.capture_file"
#define RECENT_KEY_DISPLAY_FILTER       "recent.display_filter"
#define RECENT_KEY_MAIN_TOOLBAR_SHOW    "gui.toolbar_main_show"
#define RECENT_KEY_FILTER_TOOLBAR_SHOW  "gui.filter_toolbar_show"
#define RECENT_KEY_PACKET_LIST_SHOW     "gui.packet_list_show"
#define RECENT_KEY_TREE_VIEW_SHOW       "gui.tree_view_show"
#define RECENT_KEY_BYTE_VIEW_SHOW       "gui.byte_view_show"
#define RECENT_KEY_STATUSBAR_SHOW       "gui.statusbar_show"


typedef struct recent_settings_tag {
    gboolean    main_toolbar_show;
    gboolean    filter_toolbar_show;
    gboolean    packet_list_show;
    /*gboolean    packet_list_height;*/
    gboolean    tree_view_show;
    /*gboolean    tree_view_height;*/
    gboolean    byte_view_show;
    gboolean    statusbar_show;
} recent_settings_t;

extern recent_settings_t recent;


extern int write_recent(char **rf_path_return);

extern void read_recent(char **rf_path_return, int *rf_errno_return);


#endif /* recent.h */