diff options
author | David Robillard <d@drobilla.net> | 2012-04-05 21:22:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-05 21:22:22 +0000 |
commit | f0e080e9103bfd867826ecac22f39338d5f3e829 (patch) | |
tree | e032981decded362e4da3b87dbb5a9b7c008f494 /lv2/lv2plug.in/ns/ext/log/log.h | |
parent | 17c6df0bc3043c57d2c02c58284ec4794f656b3c (diff) | |
download | lv2-f0e080e9103bfd867826ecac22f39338d5f3e829.tar.xz |
Twiddle log extension class hierarchy a bit, and all log:Trace level.
Use log extension in eg-sample if available.
Diffstat (limited to 'lv2/lv2plug.in/ns/ext/log/log.h')
-rw-r--r-- | lv2/lv2plug.in/ns/ext/log/log.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/lv2/lv2plug.in/ns/ext/log/log.h b/lv2/lv2plug.in/ns/ext/log/log.h index 4682295..3c2ec40 100644 --- a/lv2/lv2plug.in/ns/ext/log/log.h +++ b/lv2/lv2plug.in/ns/ext/log/log.h @@ -25,10 +25,12 @@ #define LV2_LOG_URI "http://lv2plug.in/ns/ext/log" #define LV2_LOG_PREFIX LV2_LOG_URI "#" -#define LV2_LOG__Error LV2_LOG_PREFIX "Error" -#define LV2_LOG__Info LV2_LOG_PREFIX "Info" -#define LV2_LOG__Warn LV2_LOG_PREFIX "Warn" -#define LV2_LOG__log LV2_LOG_PREFIX "log" +#define LV2_LOG__Entry LV2_LOG_PREFIX "Entry" +#define LV2_LOG__Error LV2_LOG_PREFIX "Error" +#define LV2_LOG__Note LV2_LOG_PREFIX "Note" +#define LV2_LOG__Trace LV2_LOG_PREFIX "Trace" +#define LV2_LOG__Warning LV2_LOG_PREFIX "Warning" +#define LV2_LOG__log LV2_LOG_PREFIX "log" #include <stdarg.h> @@ -67,11 +69,12 @@ typedef struct _LV2_Log { The API of this function matches that of the standard C printf function, except for the addition of the first two parameters. This - function may be called from any non-realtime context. + function may be called from any non-realtime context, or from any + context if @p type is @ref LV2_LOG__Trace. */ LV2_LOG_FUNC(3, 4) int (*printf)(LV2_Log_Handle handle, - LV2_URID level, + LV2_URID type, const char* fmt, ...); /** @@ -79,11 +82,12 @@ typedef struct _LV2_Log { The API of this function matches that of the standard C vprintf function, except for the addition of the first two parameters. This - function may be called from any non-realtime context. + function may be called from any non-realtime context, or from any + context if @p type is @ref LV2_LOG__Trace. */ LV2_LOG_FUNC(3, 0) int (*vprintf)(LV2_Log_Handle handle, - LV2_URID level, + LV2_URID type, const char* fmt, va_list ap); } LV2_Log_Log; |