aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-09-03 11:15:12 -0400
committerGitHub <noreply@github.com>2018-09-03 11:15:12 -0400
commit73423c988c864167447cd4292bacd3a248ef07f8 (patch)
treea26a1ab7dd1fea32d39517ec2fbcda30a3138a29 /include
parentd31a267f36aa23d6ac40709226c0d4a939cf00b4 (diff)
parent6daa69fbf567f8036031867d6767158a0a6e5fe4 (diff)
Merge pull request #1213 from arandomhuman/wlr_log_get_verbosity
Add wlr_log_get_verbosity method
Diffstat (limited to 'include')
-rw-r--r--include/wlr/util/log.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wlr/util/log.h b/include/wlr/util/log.h
index 7b0070bb..2c441180 100644
--- a/include/wlr/util/log.h
+++ b/include/wlr/util/log.h
@@ -35,8 +35,13 @@ typedef void (*wlr_log_func_t)(enum wlr_log_importance importance,
// Will log all messages less than or equal to `verbosity`
// If `callback` is NULL, wlr will use its default logger.
+// The function can be called multiple times to update the verbosity or
+// callback function.
void wlr_log_init(enum wlr_log_importance verbosity, wlr_log_func_t callback);
+// Returns the log verbosity provided to wlr_log_init
+enum wlr_log_importance wlr_log_get_verbosity(void);
+
#ifdef __GNUC__
#define _WLR_ATTRIB_PRINTF(start, end) __attribute__((format(printf, start, end)))
#else