diff options
author | Martin Minarik <minarik11@student.fiit.stuba.sk> | 2012-05-29 17:37:02 +0200 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-05-31 13:57:15 -0400 |
commit | 8e2a7867038ee6f536a56a0600d9e9bc777e2c31 (patch) | |
tree | 1d36bbb6ce6b82d927dc375217afeecaeb117dda /src/wayland-util.h | |
parent | b858a1b87b6301dcad48025dcb54fc931664e068 (diff) |
Wayland: logging
The core libwayland libraries should not handle logging, only passing
the error messages to subscribed functions.
An application linked to libwayland-server or libwayland-client
will be able to set own functions (one per library) to handle error
messages.
Change in this series: make the wl_log return int, because
of compatibility with printf. It will return the number of bytes logged.
Diffstat (limited to 'src/wayland-util.h')
-rw-r--r-- | src/wayland-util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wayland-util.h b/src/wayland-util.h index fa5c6c5..8447640 100644 --- a/src/wayland-util.h +++ b/src/wayland-util.h @@ -30,6 +30,7 @@ extern "C" { #include <math.h> #include <stddef.h> #include <inttypes.h> +#include <stdarg.h> /* GCC visibility */ #if defined(__GNUC__) && __GNUC__ >= 4 @@ -203,6 +204,8 @@ static inline wl_fixed_t wl_fixed_from_int(int i) return i * 256; } +typedef void (*wl_log_func_t)(const char *, va_list); + #ifdef __cplusplus } #endif |