aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/airpcap_gui_utils.h
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2009-06-29 23:08:05 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2009-06-29 23:08:05 +0000
commit3ed10ed7860048b04295aaa1ad04277d10f95810 (patch)
treee4af558c9bfd9b3ab5632830bf0c33f38ebaffeb /gtk/airpcap_gui_utils.h
parent3eb9cf2bb3bf64560809e6c8331a2dc96b108001 (diff)
Fix a couple of AirPcap channel/offset bugs. Remove an unused
routine. Fixup whitespace in a couple of places. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28886 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/airpcap_gui_utils.h')
-rw-r--r--gtk/airpcap_gui_utils.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/gtk/airpcap_gui_utils.h b/gtk/airpcap_gui_utils.h
index 20c58422b3..6b99c21c7d 100644
--- a/gtk/airpcap_gui_utils.h
+++ b/gtk/airpcap_gui_utils.h
@@ -149,7 +149,7 @@ airpcap_validation_type_combo_set_by_type(GtkWidget* c,AirpcapValidationType typ
* Update channel offset combo box to 'offset'.
*/
void
-airpcap_update_channel_offset_combo(airpcap_if_info_t* if_info, guint32 ch_freq, GtkWidget *channel_offset_cb);
+airpcap_update_channel_offset_combo(airpcap_if_info_t* if_info, guint32 ch_freq, GtkWidget *channel_offset_cb, gboolean set);
/*
@@ -173,7 +173,17 @@ airpcap_channel_combo_set_by_frequency(GtkWidget* w,guint channel);
* @param channel_offset_cb The channel offset GtkComboBox
*/
void
-airpcap_channel_changed_cb(GtkWidget *channel_cb, gpointer channel_offset_cb);
+airpcap_channel_changed_set_cb(GtkWidget *channel_cb, gpointer channel_offset_cb);
+
+/** Respond to the user changing the channel combo box.
+ * Update the offset combo box but not the channel.
+ * Requires AirPcap globals.
+ *
+ * @param channel_cb The channel GtkComboBox
+ * @param channel_offset_cb The channel offset GtkComboBox
+ */
+void
+airpcap_channel_changed_noset_cb(GtkWidget *channel_cb, gpointer channel_offset_cb);
/** Respond to the user changing the channel offset combo box.
* Update the active interface channel offset.
@@ -192,12 +202,6 @@ int
airpcap_if_is_any(airpcap_if_info_t* if_info);
/*
- * Change channel of Airpcap Adapter
- */
-gboolean
-airpcap_update_frequency_and_offset(airpcap_if_info_t* if_info);
-
-/*
* Takes the keys from the GtkList widget, and add them to the interface list
*/
void
@@ -210,12 +214,6 @@ void
airpcap_update_channel_combo(GtkWidget* channel_cb, airpcap_if_info_t* if_info);
/*
- * Update the channel offset of the given combobox
- */
-void
-airpcap_update_channel_offset_cb(airpcap_if_info_t* if_info, guint32 ch_freq, GtkWidget *channel_offset_cb);
-
-/*
* This function will take the current keys (widget list), specified for the
* current adapter, and save them as default for ALL the others.
*/