From 643622798f3f77eec64c30a9e0e6844ad9ebd8f4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 23 Mar 2012 19:44:58 +0000 Subject: Update log extension. --- lv2/lv2plug.in/ns/ext/log/log.h | 20 ++++++++++++-------- lv2/lv2plug.in/ns/ext/log/log.ttl | 9 ++++----- 2 files changed, 16 insertions(+), 13 deletions(-) (limited to 'lv2') diff --git a/lv2/lv2plug.in/ns/ext/log/log.h b/lv2/lv2plug.in/ns/ext/log/log.h index c139a27..4682295 100644 --- a/lv2/lv2plug.in/ns/ext/log/log.h +++ b/lv2/lv2plug.in/ns/ext/log/log.h @@ -22,11 +22,13 @@ #ifndef LV2_LOG_H #define LV2_LOG_H -#define LV2_LOG_URI "http://lv2plug.in/ns/ext/log" -#define LV2_LOG_LOG_URI LV2_LOG_URI "#log" -#define LV2_LOG_ERROR_URI LV2_LOG_URI "#Error" -#define LV2_LOG_INFO_URI LV2_LOG_URI "#Info" -#define LV2_LOG_WARN_URI LV2_LOG_URI "#Warn" +#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" #include @@ -49,7 +51,7 @@ extern "C" { typedef void* LV2_Log_Handle; /** - Log (http://lv2plug.in/ns/ext/log#log). + Log feature (LV2_LOG__log) */ typedef struct _LV2_Log { /** @@ -64,7 +66,8 @@ typedef struct _LV2_Log { Log a message, passing format parameters directly. The API of this function matches that of the standard C printf - function, except for the addition of the first two parameters. + function, except for the addition of the first two parameters. This + function may be called from any non-realtime context. */ LV2_LOG_FUNC(3, 4) int (*printf)(LV2_Log_Handle handle, @@ -75,7 +78,8 @@ typedef struct _LV2_Log { Log a message, passing format parameters in a va_list. The API of this function matches that of the standard C vprintf - function, except for the addition of the first two parameters. + function, except for the addition of the first two parameters. This + function may be called from any non-realtime context. */ LV2_LOG_FUNC(3, 0) int (*vprintf)(LV2_Log_Handle handle, diff --git a/lv2/lv2plug.in/ns/ext/log/log.ttl b/lv2/lv2plug.in/ns/ext/log/log.ttl index 567333f..9537938 100644 --- a/lv2/lv2plug.in/ns/ext/log/log.ttl +++ b/lv2/lv2plug.in/ns/ext/log/log.ttl @@ -32,11 +32,10 @@ rdfs:seeAlso ] ; lv2:documentation """ - -

This extension defines a feature, LV2_Log_Log, which allows plugins to print -messages to logs implemented by the host with an API much like the standard C -printf functions. This allows, for example, plugin logs to be nicely presented -to the user in a graphical user interface.

+

This extension defines a feature, log:log, which allows +plugins to print log messages with an API much like the standard C printf +functions. This allows, for example, plugin logs to be nicely presented to the +user in a graphical user interface.

Different log levels (e.g. error or information) are defined by URI and passed as an LV2_URID. Thus, the possible number of log -- cgit v1.2.1