ecore-wl2: Add wayland log handler callback to print wl log messages

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-08-18 12:52:34 -04:00
parent 8c8334ad2d
commit 1af91f3c61
1 changed files with 8 additions and 0 deletions

View File

@ -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: