6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 #ifndef __MAIN_WELCOME_H__
26 #define __MAIN_WELCOME_H__
28 #include "gtk/capture_dlg.h"
38 typedef struct selected_name_s {
43 typedef struct displayed_interface_s {
47 #ifdef HAVE_PCAP_REMOTE
48 remote_options remote_opts;
50 } displayed_interface;
52 GtkWidget *welcome_new(void);
54 /* reset the list of recently used files */
55 void main_welcome_reset_recent_capture_files(void);
57 /* add a new file to the list of recently used files */
58 void main_welcome_add_recent_capture_file(const char *widget_cf_name, GObject *menu_item);
60 /* reload the list of interfaces */
61 void welcome_if_panel_reload(void);
63 /** Push a status message into the welcome screen header similar to
64 * statusbar_push_*_msg(). This hides everything under the header.
65 * If msg is dynamically allocated, it is up to the caller to free
66 * it. If msg is NULL, the default message will be shown.
68 * @param msg The message
70 void welcome_header_push_msg(const gchar *msg);
72 void welcome_header_set_message(gchar *msg);
74 /** Pop a status message from the welcome screen. If there are no
75 * messages on the stack, the default message and the main columns
78 void welcome_header_pop_msg(void);
80 void select_ifaces(void);
82 GtkWidget* get_welcome_window(void);
84 void change_interface_selection(gchar* name, gboolean activate);
86 void change_selection_for_all(gboolean enable);
88 #ifdef HAVE_PCAP_REMOTE
89 void add_interface_to_list(gchar *name, gchar *descr, remote_options *remote_opts);
92 #endif /* __MAIN_WELCOME_H__ */