Have "gtk/menu.c" (and, in the future, code for other UIs) export a set
[obnox/wireshark/wip.git] / menu.h
1 /* menu.h
2  * Definitions for menu routines with toolkit-independent APIs but
3  * toolkit-dependent implementations.
4  *
5  * $Id: menu.h,v 1.7 2000/01/03 03:56:55 guy Exp $
6  *
7  * Ethereal - Network traffic analyzer
8  * By Gerald Combs <gerald@zing.org>
9  * Copyright 1998 Gerald Combs
10  *
11  * 
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version 2
15  * of the License, or (at your option) any later version.
16  * 
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  * 
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25  */
26
27 #ifndef __MENU_H__
28 #define __MENU_H__
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif /* __cplusplus */
33
34 /* Routines to enable or disable sets of menu items. */
35
36 /* Enable or disable menu items based on whether you have a capture file
37    you've finished reading. */
38 void set_menus_for_capture_file(gboolean);
39
40 /* Enable or disable menu items based on whether you have an unsaved
41    capture file you've finished reading. */
42 void set_menus_for_unsaved_capture_file(gboolean);
43
44 /* Enable or disable menu items based on whether there's a capture in
45    progress. */
46 void set_menus_for_capture_in_progress(gboolean);
47
48 /* Enable or disable menu items based on whether you have some captured
49    packets. */
50 void set_menus_for_captured_packets(gboolean);
51
52 /* Enable or disable menu items based on whether a packet is selected. */
53 void set_menus_for_selected_packet(gboolean);
54
55 #ifdef __cplusplus
56 }
57 #endif /* __cplusplus */
58
59 #endif /* __MENU_H__ */
60