aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libseat.h8
-rw-r--r--include/log.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/include/libseat.h b/include/libseat.h
index be19c43..891cb86 100644
--- a/include/libseat.h
+++ b/include/libseat.h
@@ -160,4 +160,12 @@ typedef void (*libseat_log_func)(enum libseat_log_level level, const char *forma
*/
void libseat_set_log_handler(libseat_log_func handler);
+/*
+ * Sets the libseat log level.
+ *
+ * Only log messages whose level is lower or equal than the current log level
+ * will be processed, others will be ignored.
+ */
+void libseat_set_log_level(enum libseat_log_level level);
+
#endif
diff --git a/include/log.h b/include/log.h
index d4bfd89..9aee33c 100644
--- a/include/log.h
+++ b/include/log.h
@@ -43,7 +43,7 @@
#define log_debug(str)
#endif
-void log_init(enum libseat_log_level level);
+void log_init(void);
void _logf(enum libseat_log_level level, const char *fmt, ...) ATTRIB_PRINTF(2, 3);
#endif