aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2010-04-01 21:55:01 +0000
committerGerald Combs <gerald@wireshark.org>2010-04-01 21:55:01 +0000
commitcc5d7670bde3072fdc4aa738c7643e50133c2cb2 (patch)
treeff46a91b7d856f44d11317046d270906f9b538ef /file.h
parentdc5e066caedd01323d815c60a8c988263bdd9619 (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. svn path=/trunk/; revision=32357
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