aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2010-04-01 21:55:01 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2010-04-01 21:55:01 +0000
commit734b51599ef4981aa341330a5c60a5e52e8807c7 (patch)
treeff46a91b7d856f44d11317046d270906f9b538ef /file.h
parent302cfefe80cf784a353238fbbb1692ce461fcb20 (diff)
Keep a copy of the interface description and capture filter around so that
we can use it in the main window title during and after capture. Add a "-X" option for providing a description for stdin. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32357 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'file.h')
-rw-r--r--file.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/file.h b/file.h
index 0fe0bb43f2..b546f3e86f 100644
--- a/file.h
+++ b/file.h
@@ -171,6 +171,24 @@ cf_status_t cf_save(capture_file * cf, const char *fname, packet_range_t *range,
const gchar *cf_get_display_name(capture_file *cf);
/**
+ * Set the source of the capture data for temporary files, e.g.
+ * "Interface eth0" or "Pipe from Pong"
+ *
+ * @param cf the capture file
+ * @param source the source description. this will be copied internally.
+ */
+void cf_set_tempfile_source(capture_file *cf, gchar *source);
+
+/**
+ * Get the source of the capture data for temporary files. Guaranteed to
+ * return a non-null value. The returned value should not be freed.
+ *
+ * @param cf the capture file
+ * @param source the source description. this will be copied internally.
+ */
+const gchar *cf_get_tempfile_source(capture_file *cf);
+
+/**
* Get the number of packets in the capture file.
*
* @param cf the capture file