aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/log.h b/src/log.h
index 9528a3d..e4dd546 100644
--- a/src/log.h
+++ b/src/log.h
@@ -38,30 +38,38 @@ typedef struct {
bool tracing;
} JalvLog;
+/// Print a control value to stderr, like "sym = 1.234"
void
jalv_print_control(const Jalv* jalv, const struct Port* port, float value);
+/// Return a newly allocated copy of a string
char*
jalv_strdup(const char* str);
+/// Return a newly allocated concatenation of two strings
char*
jalv_strjoin(const char* a, const char* b);
+/// Print a log message to stderr with a GCC-like prefix and color
JALV_LOG_FUNC(2, 3)
int
jalv_log(JalvLogLevel level, const char* fmt, ...);
+/// LV2 log vprintf function
JALV_LOG_FUNC(3, 0)
int
jalv_vprintf(LV2_Log_Handle handle, LV2_URID type, const char* fmt, va_list ap);
+/// LV2 log printf function
JALV_LOG_FUNC(3, 4)
int
jalv_printf(LV2_Log_Handle handle, LV2_URID type, const char* fmt, ...);
+/// Write an ANSI escape sequence to set the foreground color
bool
jalv_ansi_start(FILE* stream, int color);
+/// Write an ANSI escape sequence to reset the foreground color
void
jalv_ansi_reset(FILE* stream);