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:
Martin Minarik 2012-05-29 17:37:02 +02:00 committed by Kristian Høgsberg
parent b858a1b87b
commit 8e2a786703
7 changed files with 41 additions and 0 deletions

View file

@ -589,3 +589,9 @@ wl_proxy_get_id(struct wl_proxy *proxy)
{
return proxy->object.id;
}
WL_EXPORT void
wl_log_set_handler_client(wl_log_func_t handler)
{
wl_log_handler = handler;
}