Move the common parts of iface_lists.[ch] from ui/gtk/ to ui/. Leave the
[metze/wireshark/wip.git] / ui / gtk / capture_dlg.h
index 1a268b380739b5e856f8e63e4f60d1447d0e75d9..9efd48d5feb0229a77cfaba4b36e36bf3d9e37bb 100644 (file)
@@ -1,5 +1,6 @@
 /* capture_dlg.h
- * Definitions for packet capture windows
+ * Definitions for the "Capture Options" dialog and dialog windows popped
+ * up from it
  *
  * $Id$
  *
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #ifndef __CAPTURE_DLG_H__
 #define __CAPTURE_DLG_H__
 
-/* extern GtkWidget* airpcap_tb; */
+/* extern GtkWidget* wireless_tb; */
 
 /** @file
  *  "Capture Options" dialog box.
 #include "capture_opts.h"
 #include <gtk/gtk.h>
 
-enum
-{
-    CAPTURE = 0,
-    IFACE_HIDDEN_NAME, 
-    INTERFACE,
-    LINK,
-    PMODE,
-    SNAPLEN,
-#if defined(HAVE_PCAP_CREATE)
-    BUFFER,
-    MONITOR,
-#elif defined(_WIN32) && !defined(HAVE_PCAP_CREATE)
-    BUFFER,
-#endif
-    FILTER,
-    NUM_COLUMNS
-};
-
 /** Initialize background capture filter syntax checking
  */
 void capture_filter_init(void);
@@ -84,9 +67,6 @@ void capture_stop_cb(GtkWidget *widget, gpointer data);
  */
 void capture_restart_cb(GtkWidget *widget, gpointer data);
 
-/* capture start confirmed by "Save unsaved capture", so do it now */
-void capture_start_confirmed(void);
-
 /** User requested the "Capture Airpcap" dialog box by menu or toolbar.
  *
  * @param widget parent widget (unused)
@@ -118,27 +98,12 @@ capture_remote_combo_recent_write_all(FILE *rf);
  * @param s string with hostname,port,auth_type
  * @return TRUE if correctly added
  */
-gboolean 
+gboolean
 capture_remote_combo_add_recent(gchar *s);
 #endif
 
-GtkTreeModel*
-create_and_fill_model (GtkTreeView *view);
-
-gboolean
-query_tooltip_tree_view_cb (GtkWidget  *widget,
-                            gint        x,
-                            gint        y,
-                            gboolean    keyboard_tip,
-                            GtkTooltip *tooltip,
-                            gpointer    data);
-
-void
-activate_monitor (GtkTreeViewColumn *tree_column, GtkCellRenderer *renderer,
-                  GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data);
-
 gboolean
-dlg_window_present(void);
+capture_dlg_window_present(void);
 
 void
 enable_selected_interface(gchar *name, gboolean selected);
@@ -147,6 +112,18 @@ void
 options_interface_cb(GtkTreeView *view, GtkTreePath *path, GtkTreeViewColumn *column _U_, gpointer userdata);
 
 void
-update_all_rows(void);
+capture_dlg_refresh_if(void);
+
+/*
+ * Refresh everything visible that shows an interface list that
+ * includes local interfaces.
+ */
+extern void refresh_local_interface_lists(void);
+
+/*
+ * Refresh everything visible that shows an interface list that
+ * includes non-local interfaces.
+ */
+extern void refresh_non_local_interface_lists(void);
 
 #endif /* capture_dlg.h */