diff options
author | Gerald Combs <gerald@wireshark.org> | 2010-04-01 21:55:01 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2010-04-01 21:55:01 +0000 |
commit | cc5d7670bde3072fdc4aa738c7643e50133c2cb2 (patch) | |
tree | ff46a91b7d856f44d11317046d270906f9b538ef /file.h | |
parent | dc5e066caedd01323d815c60a8c988263bdd9619 (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.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 |