clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit 9cde2be9bb0db40596c4b575119dad2a285d4d59
parent 81802f6758665d22fc0573a469555b301a86bb85
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Mon, 20 Oct 2014 19:28:38 +0200

Add a log facility to the host

Diffstat:
Minclude/clap/clap.h | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/include/clap/clap.h b/include/clap/clap.h @@ -57,6 +57,15 @@ enum clap_string_size CLAP_URL_SIZE = 256, }; +enum clap_log_severity +{ + CLAP_LOG_DEBUG = 0, + CLAP_LOG_INFO = 1, + CLAP_LOG_WARNING = 2, + CLAP_LOG_ERROR = 3, + CLAP_LOG_FATAL = 4, +}; + /////////// // PORTS // /////////// @@ -285,6 +294,11 @@ struct clap_host * value must be greater or equal to the previous one. */ uint64_t (*steady_time)(struct clap_host *host); + /* Log a message through the host. */ + void (*log)(struct clap_host *host, + enum clap_log_severity severity, + const char *msg); + /* future features */ void *(*extension)(struct clap_host *host, const char *extention_id, void *ptr); };