path: root/capture_opts.h
diff options
authorUlf Lamping <ulf.lamping@web.de>2005-12-13 22:48:58 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-12-13 22:48:58 +0000
commit79217bab2ebb0d2811e130bea6334c8227a88a28 (patch)
treec1eaf102b2b809cf7c36ee980beae74a5db9121b /capture_opts.h
parent459c0b07b205939f0ffd339b7c4b18843fcc9d1f (diff)
HUGE STEP (hopefully toward the right direction):
remove a lot of redundant code from tethereal and use (move) stuff from capture_loop.c instead. concentrate common capture related code in capture_opts.c, e.g. trying to find the right interface to capture from (command line option, preference, first usable) instead of duplicating this code over several files. remove redundant code from dumpcap.c this also implements command line option -D (and indexed interfaces at -i) for Ethereal and Dumpcap (as we have it in Tethereal already for a while) svn path=/trunk/; revision=16787
Diffstat (limited to 'capture_opts.h')
1 files changed, 19 insertions, 4 deletions
diff --git a/capture_opts.h b/capture_opts.h
index e75535afd1..193866d583 100644
--- a/capture_opts.h
+++ b/capture_opts.h
@@ -105,13 +105,28 @@ capture_opts_init(capture_options *capture_opts, void *cfile);
extern void
capture_opts_add_opt(capture_options *capture_opts, int opt, const char *optarg, gboolean *start_capture);
-/* trim values after command line finished */
-extern void
-capture_opts_trim(capture_options *capture_opts, int snaplen_min);
/* log content of capture_opts */
extern void
capture_opts_log(const char *log_domain, GLogLevelFlags log_level, capture_options *capture_opts);
+/* list link layer types */
+extern void
+capture_opts_list_link_layer_types(capture_options *capture_opts);
+/* list interfaces */
+extern void
+/* trim the snaplen entry */
+extern void
+capture_opts_trim_snaplen(capture_options *capture_opts, int snaplen_min);
+/* trim the ring_num_files entry */
+extern void
+capture_opts_trim_ring_num_files(capture_options *capture_opts);
+/* trim the interface entry */
+extern gboolean
+capture_opts_trim_iface(capture_options *capture_opts, const char *capture_device);
#endif /* capture_opts.h */