HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / ui / gtk / main_toolbar_private.h
blob774fea4702e4200f5dde4dffa3f46f1559a55879
1 /* main_toolbar_private.h
3 * $Id$
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #ifndef __MAIN_TOLBAR_PRIVATE_H__
25 #define __MAIN_TOLBAR_PRIVATE_H__
27 /*** PRIVATE INTERFACE BETWEEN main.c AND main_toolbar.c DON'T USE OR TOUCH :-)*/
29 /** Create the main toolbar.
30 * @return the new toolbar
32 GtkWidget *toolbar_new(void);
34 /** We have (or don't have) a capture in progress now.
36 * @param have_capture_file TRUE, if we have a capture in progress file
38 void set_toolbar_for_capture_in_progress(gboolean have_capture_file);
40 /** The capture is in the process of being stopped.
42 void set_toolbar_for_capture_stopping(void);
44 /** We have (or don't have) captured packets now.
46 * @param have_captured_packets TRUE, if we have captured packets
48 void set_toolbar_for_captured_packets(gboolean have_captured_packets);
50 /** The packet history has changed, we need to update the menu.
52 * @param back_history some back history entries available
53 * @param forward_history some forward history entries available
55 void set_toolbar_for_packet_history(gboolean back_history, gboolean forward_history);
57 /** The "Colorize Packet List" option has changed.
59 void toolbar_colorize_changed(gboolean packet_list_colorize);
61 #ifdef HAVE_LIBPCAP
62 /** The "Auto Scroll in Live Capture" option has changed.
64 void toolbar_auto_scroll_live_changed(gboolean auto_scroll_live);
65 #endif
67 /* Enable or disable toolbar items based on whether you have a capture file
68 * and, if so, whether you've finished reading it and whether there's stuff
69 * in it that hasn't yet been saved to a permanent file.
70 * @param cf cfile_t for the capture file in question
72 void set_toolbar_for_capture_file(capture_file *cf);
74 #endif /* __MAIN_TOOLBAR_PRIVATE_H__ */