summaryrefslogtreecommitdiff
path: root/src/wayland-client.c
diff options
context:
space:
mode:
authorMartin Minarik <minarik11@student.fiit.stuba.sk>2012-05-29 17:37:02 +0200
committerKristian Høgsberg <krh@bitplanet.net>2012-05-31 13:57:15 -0400
commit8e2a7867038ee6f536a56a0600d9e9bc777e2c31 (patch)
tree1d36bbb6ce6b82d927dc375217afeecaeb117dda /src/wayland-client.c
parentb858a1b87b6301dcad48025dcb54fc931664e068 (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-client.c')
-rw-r--r--src/wayland-client.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wayland-client.c b/src/wayland-client.c
index 1a24abf..ecedd99 100644
--- a/src/wayland-client.c
+++ b/src/wayland-client.c
@@ -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;
+}