diff options
author | David Robillard <d@drobilla.net> | 2021-01-13 20:00:25 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 456bdeef35ffbfbdad7609e8b8a4ef71372786fd (patch) | |
tree | 25fabaa4f361f66a2bac860f06722e7f51776cbc /src/log.h | |
parent | fc2114a10769349d38b3215bc95ded855a2be5b6 (diff) | |
download | serd-456bdeef35ffbfbdad7609e8b8a4ef71372786fd.tar.gz serd-456bdeef35ffbfbdad7609e8b8a4ef71372786fd.tar.bz2 serd-456bdeef35ffbfbdad7609e8b8a4ef71372786fd.zip |
[WIP] Add extensible logging API
Diffstat (limited to 'src/log.h')
-rw-r--r-- | src/log.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/log.h b/src/log.h new file mode 100644 index 00000000..ebb7dd60 --- /dev/null +++ b/src/log.h @@ -0,0 +1,21 @@ +// Copyright 2011-2023 David Robillard <d@drobilla.net> +// SPDX-License-Identifier: ISC + +#ifndef SERD_SRC_LOG_H +#define SERD_SRC_LOG_H + +#include "serd/log.h" +#include "serd/status.h" + +#include <stdbool.h> + +typedef struct { + SerdLogFunc func; + void* handle; + bool stderr_color; +} SerdLog; + +SerdStatus +serd_log_init(SerdLog* log); + +#endif // SERD_SRC_LOG_H |