aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/capture_dlg.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-11-11 11:37:53 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-11-11 11:37:53 +0000
commit053dd12cbdfbdc65d65b17263cb367788aeca461 (patch)
tree4b228b0d4270d6e74944c9812f2428d286aa6383 /gtk/capture_dlg.h
parent1b0b2bb4b6ef73ea3ab59f280e4d7bb82d165fdf (diff)
Rewrote interface type option_menu to gtk_combo_box, this fixes the bug
showing the correct type on connect failure or cancel in the remote interface dialog. Added list of recent remote hosts to interface type combo box. Save the recent remote hosts in the recent file. Fixed some indents. svn path=/trunk/; revision=26747
Diffstat (limited to 'gtk/capture_dlg.h')
-rw-r--r--gtk/capture_dlg.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/gtk/capture_dlg.h b/gtk/capture_dlg.h
index c1497a99d6..b5c2fa453d 100644
--- a/gtk/capture_dlg.h
+++ b/gtk/capture_dlg.h
@@ -87,4 +87,31 @@ capture_air_cb(GtkWidget *widget, gpointer data);
void
set_capture_if_dialog_for_capture_in_progress(gboolean capture_in_progress);
+#ifdef HAVE_PCAP_REMOTE
+struct remote_host {
+ gchar *remote_host; /**< Host name or network address for remote capturing */
+ gchar *remote_port; /**< TCP port of remote RPCAP server */
+ gint auth_type; /**< Authentication type */
+ gchar *auth_username; /**< Remote authentication parameters */
+ gchar *auth_password; /**< Remote authentication parameters */
+};
+
+#define RECENT_KEY_REMOTE_HOST "recent.remote_host"
+
+/** Write all remote hosts to the recent file
+ *
+ * @param rf recent file
+ */
+void
+capture_remote_combo_recent_write_all(FILE *rf);
+
+/** Add a new remote host from the recent file
+ *
+ * @param s string with hostname,port,auth_type
+ * @return TRUE if correctly added
+ */
+gboolean
+capture_remote_combo_add_recent(gchar *s);
+#endif
+
#endif /* capture_dlg.h */