mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
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.
This commit is contained in:
parent
b858a1b87b
commit
8e2a786703
7 changed files with 41 additions and 0 deletions
|
|
@ -105,4 +105,8 @@ wl_closure_print(struct wl_closure *closure, struct wl_object *target, int send)
|
|||
void
|
||||
wl_closure_destroy(struct wl_closure *closure);
|
||||
|
||||
extern wl_log_func_t wl_log_handler;
|
||||
|
||||
void wl_log(const char *fmt, ...);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue