Trivial reformatting
[obnox/wireshark/wip.git] / gtk / airpcap_dlg.h
1 /* airpcap_dlg.h
2  * Declarations of routines for the "Airpcap" dialog
3  *
4  * $Id$
5  *
6  * Giorgio Tino <giorgio.tino@cacetech.com>
7  * Copyright (c) CACE Technologies, LLC 2006
8  *
9  * Wireshark - Network traffic analyzer
10  * By Gerald Combs <gerald@wireshark.org>
11  * Copyright 1998 Gerald Combs
12  *
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.
17  *
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.
22  *
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.
26  */
27
28 #ifndef __AIRPCAP_DLG_H__
29 #define __AIRPCAP_DLG_H__
30
31 #define AIRPCAP_ADVANCED_FROM_TOOLBAR 0
32 #define AIRPCAP_ADVANCED_FROM_OPTIONS 1
33
34 /*
35  * Returns FALSE if a text string has length 0, i.e. the first char
36  * is '\0', TRUE otherwise
37  */
38 gboolean
39 string_is_not_empty(gchar *s);
40
41 /*
42  * Edit key window destroy callback
43  */
44 void
45 on_edit_key_w_destroy(GtkWidget *button, gpointer data _U_);
46
47 /*
48  * Add key window destroy callback
49  */
50 void
51 on_add_key_w_destroy(GtkWidget *button, gpointer data _U_);
52
53 /*
54  * Creates the list of available decryption modes, depending on the adapters found
55  */
56 void
57 update_decryption_mode_list(GtkWidget *w);
58
59 /*
60  * Callback for the 'Add Key' button.
61  */
62 void
63 on_add_new_key_bt_clicked(GtkWidget *button, gpointer data _U_);
64
65 /*
66  * Callback for the 'Remove Key' button.
67  */
68 void
69 on_remove_key_bt_clicked(GtkWidget *button, gpointer data _U_);
70
71 /*
72  * Callback for the 'Edit Key' button.
73  */
74 void
75 on_edit_key_bt_clicked(GtkWidget *button, gpointer data _U_);
76
77 /*
78  * Callback for the 'Move Key Down' button.
79  */
80 void
81 on_move_key_down_bt_clicked(GtkWidget *button, gpointer data _U_);
82
83 /*
84  * Callback for the 'Move Key Up' button.
85  */
86 void
87 on_move_key_up_bt_clicked(GtkWidget *button, gpointer data _U_);
88
89 /*
90  * Callback for the Wireless Advanced Settings 'Apply' button.
91  */
92 void
93 on_advanced_apply_bt_clicked(GtkWidget *button, gpointer data _U_);
94
95 /*
96  * Callback for the OK button 'clicked' in the Advanced Wireless Settings window.
97  */
98 void
99 on_advanced_ok_bt_clicked(GtkWidget *button, gpointer data _U_);
100
101 /*
102  * Callback for the CANCEL button 'clicked' in the Advanced Wireless Settings window.
103  */
104 void
105 on_advanced_cancel_bt_clicked(GtkWidget *button, gpointer data _U_);
106
107 /*
108  * Callback for the 'Apply' button.
109  */
110 void
111 on_key_management_apply_bt_clicked(GtkWidget *button, gpointer data _U_);
112
113 /*
114  * Callback for the OK button 'clicked' in the Decryption Key Management window.
115  */
116 void
117 on_key_management_ok_bt_clicked(GtkWidget *button, gpointer data _U_);
118
119 /*
120  * Callback for the CANCEL button 'clicked' in the Decryption Key Management window.
121  */
122 void
123 on_key_management_cancel_bt_clicked(GtkWidget *button, gpointer data _U_);
124
125 /* the window was closed, cleanup things */
126 void
127 on_key_management_destroy(GtkWidget *w _U_, gpointer data _U_);
128
129 /*
130  * Callback for the 'Reset Configuration' button.
131  */
132 void
133 on_reset_configuration_bt_clicked(GtkWidget *button, gpointer data _U_);
134
135 /*
136  * Turns the decryption on or off
137  */
138 void
139 on_decryption_mode_cb_changed(GtkWidget *w, gpointer data);
140
141 /*
142  * Selects the current decryption mode in the given combo box
143  */
144 void
145 update_decryption_mode(GtkWidget *w);
146
147 /*
148  * Callback for the select row event in the key list widget
149  */
150 void
151 on_key_ls_select_row(GtkWidget *widget,
152                      gint row,
153                      gint column,
154                      GdkEventButton *event,
155                      gpointer data);
156
157 /*
158  * Callback for the unselect row event in the key list widget
159  */
160 void
161 on_key_ls_unselect_row(GtkWidget *widget,
162                      gint row,
163                      gint column,
164                      GdkEventButton *event,
165                      gpointer data);
166
167 /*
168  * Callback for the click column event in the key list widget
169  */
170 void
171 on_key_ls_click_column(GtkWidget *widget,
172                        gint column,
173                        gpointer data);
174
175 /*
176  * Thread function used to blink the led
177  */
178 gboolean update_blink(gpointer data _U_);
179
180 /*
181  * Blink button callback
182  */
183 void
184 on_blink_bt_clicked(GtkWidget *blink_bt _U_, gpointer if_data);
185
186 /*
187  * Callback for the 'Any' adapter What's This button.
188  */
189 void
190 on_what_s_this_bt_clicked( GtkWidget *blink_bt _U_, gpointer if_data );
191
192 /** Create a "Airpcap" dialog box caused by a button click.
193  *
194  * @param widget parent widget
195  * @param construct_args_ptr parameters to construct the dialog (construct_args_t)
196  */
197 void display_airpcap_advanced_cb(GtkWidget *widget, gpointer construct_args_ptr);
198
199 /* Called to create the key management window */
200 void
201 display_airpcap_key_management_cb(GtkWidget *w, gpointer data);
202
203 /**/
204 /*
205  * Dialog box that appears whenever keys are not consistent between wieshark and airpcap
206  */
207 void
208 airpcap_keys_check_w(GtkWidget *w, gpointer data);
209
210 void
211 on_keys_check_w_destroy (GtkWidget *w, gpointer user_data);
212
213 void
214 on_keys_check_cancel_bt_clicked (GtkWidget *button, gpointer user_data);
215
216 void
217 on_keys_check_ok_bt_clicked (GtkWidget *button, gpointer user_data);
218
219 void
220 on_keep_bt_clicked (GtkWidget *button, gpointer user_data);
221
222 void
223 on_merge_bt_clicked (GtkWidget *button, gpointer user_data);
224
225 void
226 on_import_bt_clicked (GtkWidget *button, gpointer user_data);
227
228 void
229 on_ignore_bt_clicked (GtkWidget *button, gpointer user_data);
230
231 #endif