aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.h
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2021-06-11 13:39:16 +0100
committerJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2021-06-14 13:13:12 +0100
commit5a662ba3fb93d6abef23fe665807ad5ec09b1103 (patch)
treefe4072b9353a33bb1f57302e22b77dbd5f905e17 /capture_opts.h
parent82739fc4f55f51b1d5dd79078bd507837c27dedf (diff)
wslog: Add support for domain filtering
A domain filter can be given in the environment variable 'WS_LOG_DOMAINS' or in a command-line options "--log-domains". The filter is specified as a comma separated case insensitive list, for example: ./tshark --log-domains=main,capture Domain data type switches from an enum to a string. There is no constaint on adding new domains, neither in code or at runtime. The string format is arbitrary, only positive matches will produce output.
Diffstat (limited to 'capture_opts.h')
-rw-r--r--capture_opts.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/capture_opts.h b/capture_opts.h
index 2c6fffc8a3..6ce656a389 100644
--- a/capture_opts.h
+++ b/capture_opts.h
@@ -339,7 +339,7 @@ capture_opts_add_opt(capture_options *capture_opts, int opt, const char *optarg)
/* log content of capture_opts */
extern void
-capture_opts_log(enum ws_log_domain domain, enum ws_log_level level, capture_options *capture_opts);
+capture_opts_log(const char *domain, enum ws_log_level level, capture_options *capture_opts);
enum caps_query {
CAPS_QUERY_LINK_TYPES = 0x1,