From 1af91f3c614187cb2df7cfbb54f1369d3e096bfd Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 18 Aug 2015 12:52:34 -0400 Subject: [PATCH] ecore-wl2: Add wayland log handler callback to print wl log messages Signed-off-by: Chris Michael --- src/lib/ecore_wl2/ecore_wl2.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/ecore_wl2/ecore_wl2.c b/src/lib/ecore_wl2/ecore_wl2.c index 5b643fbd1c..5eb377e325 100644 --- a/src/lib/ecore_wl2/ecore_wl2.c +++ b/src/lib/ecore_wl2/ecore_wl2.c @@ -14,6 +14,12 @@ int _ecore_wl2_log_dom = -1; EAPI int ECORE_WL2_EVENT_GLOBAL_ADDED = 0; EAPI int ECORE_WL2_EVENT_GLOBAL_REMOVED = 0; +static void +_cb_wl_log_print(const char *format, va_list args) +{ + EINA_LOG_DOM_INFO(_ecore_wl2_log_dom, format, args); +} + /* public API functions */ EAPI int ecore_wl2_init(void) @@ -53,6 +59,8 @@ ecore_wl2_init(void) ECORE_WL2_EVENT_GLOBAL_REMOVED = ecore_event_type_new(); } + wl_log_set_handler_server(_cb_wl_log_print); + return _ecore_wl2_init_count; ecore_event_err: