aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/log.h b/src/log.h
index a08edd7..f5b9b08 100644
--- a/src/log.h
+++ b/src/log.h
@@ -26,6 +26,12 @@ struct Port;
// String and log utilities
+typedef enum {
+ JALV_LOG_ERR = 3,
+ JALV_LOG_WARNING = 4,
+ JALV_LOG_DEBUG = 7,
+} JalvLogLevel;
+
void
jalv_print_control(Jalv* jalv, const struct Port* port, float value);
@@ -35,14 +41,22 @@ jalv_strdup(const char* str);
char*
jalv_strjoin(const char* a, const char* b);
-JALV_LOG_FUNC(3, 4)
+JALV_LOG_FUNC(2, 0)
int
-jalv_printf(LV2_Log_Handle handle, LV2_URID type, const char* fmt, ...);
+jalv_vlog(JalvLogLevel level, const char* fmt, va_list ap);
+
+JALV_LOG_FUNC(2, 3)
+int
+jalv_log(JalvLogLevel level, const char* fmt, ...);
JALV_LOG_FUNC(3, 0)
int
jalv_vprintf(LV2_Log_Handle handle, LV2_URID type, const char* fmt, va_list ap);
+JALV_LOG_FUNC(3, 4)
+int
+jalv_printf(LV2_Log_Handle handle, LV2_URID type, const char* fmt, ...);
+
bool
jalv_ansi_start(FILE* stream, int color);