2 * Declarations of routines for the "Airpcap" dialog
6 * Giorgio Tino <giorgio.tino@cacetech.com>
7 * Copyright (c) CACE Technologies, LLC 2006
9 * Wireshark - Network traffic analyzer
10 * By Gerald Combs <gerald@wireshark.org>
11 * Copyright 1998 Gerald Combs
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28 #ifndef __AIRPCAP_DLG_H__
29 #define __AIRPCAP_DLG_H__
31 #define AIRPCAP_ADVANCED_FROM_TOOLBAR 0
32 #define AIRPCAP_ADVANCED_FROM_OPTIONS 1
35 * Returns FALSE if a text string has length 0, i.e. the first char
36 * is '\0', TRUE otherwise
39 string_is_not_empty(gchar *s);
42 * Edit key window destroy callback
45 on_edit_key_w_destroy(GtkWidget *button, gpointer data _U_);
48 * Add key window destroy callback
51 on_add_key_w_destroy(GtkWidget *button, gpointer data _U_);
54 * Creates the list of available decryption modes, depending on the adapters found
57 update_decryption_mode_list(GtkWidget *w);
60 * Callback for the 'Add Key' button.
63 on_add_new_key_bt_clicked(GtkWidget *button, gpointer data _U_);
66 * Callback for the 'Remove Key' button.
69 on_remove_key_bt_clicked(GtkWidget *button, gpointer data _U_);
72 * Callback for the 'Edit Key' button.
75 on_edit_key_bt_clicked(GtkWidget *button, gpointer data _U_);
78 * Callback for the 'Move Key Down' button.
81 on_move_key_down_bt_clicked(GtkWidget *button, gpointer data _U_);
84 * Callback for the 'Move Key Up' button.
87 on_move_key_up_bt_clicked(GtkWidget *button, gpointer data _U_);
90 * Callback for the Wireless Advanced Settings 'Apply' button.
93 on_advanced_apply_bt_clicked(GtkWidget *button, gpointer data _U_);
96 * Callback for the OK button 'clicked' in the Advanced Wireless Settings window.
99 on_advanced_ok_bt_clicked(GtkWidget *button, gpointer data _U_);
102 * Callback for the CANCEL button 'clicked' in the Advanced Wireless Settings window.
105 on_advanced_cancel_bt_clicked(GtkWidget *button, gpointer data _U_);
108 * Callback for the 'Apply' button.
111 on_key_management_apply_bt_clicked(GtkWidget *button, gpointer data _U_);
114 * Callback for the OK button 'clicked' in the Decryption Key Management window.
117 on_key_management_ok_bt_clicked(GtkWidget *button, gpointer data _U_);
120 * Callback for the CANCEL button 'clicked' in the Decryption Key Management window.
123 on_key_management_cancel_bt_clicked(GtkWidget *button, gpointer data _U_);
125 /* the window was closed, cleanup things */
127 on_key_management_destroy(GtkWidget *w _U_, gpointer data _U_);
130 * Callback for the 'Reset Configuration' button.
133 on_reset_configuration_bt_clicked(GtkWidget *button, gpointer data _U_);
136 * Turns the decryption on or off
139 on_decryption_mode_cb_changed(GtkWidget *w, gpointer data);
142 * Selects the current decryption mode in the given combo box
145 update_decryption_mode(GtkWidget *w);
148 * Reset configuration
151 on_reset_configuration_bt_clicked(GtkWidget *button, gpointer data _U_);
154 * Callback for the select row event in the key list widget
157 on_key_ls_select_row(GtkWidget *widget,
160 GdkEventButton *event,
164 * Callback for the unselect row event in the key list widget
167 on_key_ls_unselect_row(GtkWidget *widget,
170 GdkEventButton *event,
174 * Callback for the click column event in the key list widget
177 on_key_ls_click_column(GtkWidget *widget,
182 * Thread function used to blink the led
184 gboolean update_blink(gpointer data _U_);
187 * Blink button callback
190 on_blink_bt_clicked(GtkWidget *blink_bt _U_, gpointer if_data);
193 * Callback for the 'Any' adapter What's This button.
196 on_what_s_this_bt_clicked( GtkWidget *blink_bt _U_, gpointer if_data );
198 /** Create a "Airpcap" dialog box caused by a button click.
200 * @param widget parent widget
201 * @param construct_args_ptr parameters to construct the dialog (construct_args_t)
203 void display_airpcap_advanced_cb(GtkWidget *widget, gpointer construct_args_ptr);
205 /* Called to create the key management window */
207 display_airpcap_key_management_cb(GtkWidget *w, gpointer data);
211 * Dialog box that appears whenever keys are not consistent between wieshark and airpcap
214 airpcap_keys_check_w(GtkWidget *w, gpointer data);
217 on_keys_check_w_destroy (GtkWidget *w, gpointer user_data);
220 on_keys_check_cancel_bt_clicked (GtkWidget *button, gpointer user_data);
223 on_keys_check_ok_bt_clicked (GtkWidget *button, gpointer user_data);
226 on_keep_bt_clicked (GtkWidget *button, gpointer user_data);
229 on_merge_bt_clicked (GtkWidget *button, gpointer user_data);
232 on_import_bt_clicked (GtkWidget *button, gpointer user_data);
235 on_ignore_bt_clicked (GtkWidget *button, gpointer user_data);