From 96fabeeccd641f39fd111449dfcae39911179510 Mon Sep 17 00:00:00 2001 From: ulfl Date: Sun, 6 Feb 2005 21:20:35 +0000 Subject: another two steps towards privilege seperation: move another two capture related fields (iface and cfilter) from cfile to capture_opts also move the handling of capture related command line options from main.c to capture.c, that way a future privilege seperated capture program can use the same code to parse it's command line than Ethereal. It might be even possible to share this parser code even with Tethereal, didn't took a closer look at this. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13320 f5534014-38df-0310-8fa8-9805f1628bb7 --- file.h | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'file.h') diff --git a/file.h b/file.h index 4ab49dcec1..ee47fee173 100644 --- a/file.h +++ b/file.h @@ -97,7 +97,7 @@ cf_read_status_t cf_read(capture_file *cf); * @param err the error code, if an error had occured * @return one of cf_status_t */ -cf_status_t cf_start_tail(capture_file *cf, const char *fname, gboolean is_tempfile, int *err); +cf_status_t cf_start_tail(capture_file *cf, const char *fname, const char *iface, gboolean is_tempfile, int *err); /** * Read packets from the "end" of a capture file. @@ -153,22 +153,6 @@ int cf_packet_count(capture_file *cf); */ gboolean cf_is_tempfile(capture_file *cf); -/** - * Get the interface name to capture from. - * - * @param cf the capture file - * @return the interface name (don't have to be g_free'd) - */ -gchar *cf_get_iface(capture_file *cf); - -/** - * Get the capture filter of this capture file. - * - * @param cf the capture file - * @return the capture filter (don't have to be g_free'd) - */ -gchar *cf_get_cfilter(capture_file *cf); - /** * Set flag, if the number of packet drops while capturing are known or not. * -- cgit v1.2.3