summaryrefslogtreecommitdiff
path: root/cmdutils.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-09-26 08:15:37 +0200
committerAnton Khirnov <anton@khirnov.net>2011-09-26 20:33:50 +0200
commit182cbe433aea20b0d9627d40de7c75713ec736db (patch)
tree86c5c5d6b80fc435a51beefde15ff8f41d5c6659 /cmdutils.h
parent4ca59d19485afce923c6f1d8ccef980011b76f50 (diff)
avtools: parse loglevel before all the other options.
This way it can be applied to cmdutils too -- e.g. showing the banner and printing startup messages.
Diffstat (limited to 'cmdutils.h')
-rw-r--r--cmdutils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmdutils.h b/cmdutils.h
index dc19486834..a20b779f1a 100644
--- a/cmdutils.h
+++ b/cmdutils.h
@@ -175,6 +175,11 @@ void parse_options(void *optctx, int argc, char **argv, const OptionDef *options
int parse_option(void *optctx, const char *opt, const char *arg, const OptionDef *options);
/**
+ * Find the '-loglevel' option in the commandline args and apply it.
+ */
+void parse_loglevel(int argc, char **argv, const OptionDef *options);
+
+/**
* Check if the given stream matches a stream specifier.
*
* @param s Corresponding format context.