HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / ui / gtk / capture_dlg.h
blobb6d7523cc9a1b3955973aedd024f7769f21eb171
1 /* capture_dlg.h
2 * Definitions for the "Capture Options" dialog and dialog windows popped
3 * up from it
5 * $Id$
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #ifndef __CAPTURE_DLG_H__
27 #define __CAPTURE_DLG_H__
29 /* extern GtkWidget* wireless_tb; */
31 /** @file
32 * "Capture Options" dialog box.
33 * @ingroup dialog_group
35 #include "capture_opts.h"
36 #include <gtk/gtk.h>
38 #define CR_MAIN_NB "compile_results_main_notebook"
40 /** Initialize background capture filter syntax checking
42 void capture_filter_init(void);
44 /** User requested the "Capture Options" dialog box by menu or toolbar.
46 * @param widget parent widget (unused)
47 * @param data unused
49 void capture_prep_cb(GtkWidget *widget, gpointer data);
51 /** User requested capture start by menu or toolbar.
53 * @param widget parent widget (unused)
54 * @param data unused
56 void capture_start_cb(GtkWidget *widget, gpointer data);
58 /** User requested capture stop by menu or toolbar.
60 * @param widget parent widget (unused)
61 * @param data unused
63 void capture_stop_cb(GtkWidget *widget, gpointer data);
65 /** User requested capture restart by menu or toolbar.
67 * @param widget parent widget (unused)
68 * @param data unused
70 void capture_restart_cb(GtkWidget *widget, gpointer data);
72 /** User requested the "Capture Airpcap" dialog box by menu or toolbar.
74 * @param widget parent widget (unused)
75 * @param data unused
77 void
78 capture_air_cb(GtkWidget *widget, gpointer data);
80 #ifdef HAVE_PCAP_REMOTE
81 struct remote_host {
82 gchar *remote_host; /**< Host name or network address for remote capturing */
83 gchar *remote_port; /**< TCP port of remote RPCAP server */
84 gint auth_type; /**< Authentication type */
85 gchar *auth_username; /**< Remote authentication parameters */
86 gchar *auth_password; /**< Remote authentication parameters */
88 #endif
90 gboolean
91 capture_dlg_window_present(void);
93 void
94 enable_selected_interface(gchar *name, gboolean selected);
96 void
97 options_interface_cb(GtkTreeView *view, GtkTreePath *path, GtkTreeViewColumn *column _U_, gpointer userdata);
99 void
100 capture_dlg_refresh_if(void);
102 void
103 update_visible_columns_menu (void);
105 void
106 update_visible_tree_view_columns(void);
109 * Refresh everything visible that shows an interface list that
110 * includes local interfaces.
112 extern void refresh_local_interface_lists(void);
115 * Refresh everything visible that shows an interface list that
116 * includes non-local interfaces.
118 extern void refresh_non_local_interface_lists(void);
120 #endif /* capture_dlg.h */