add code to setup wayland logging function

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-10-14 14:07:38 -04:00
parent 62471b5b5b
commit edc0037655
1 changed files with 9 additions and 0 deletions

View File

@ -7,6 +7,12 @@
if (e_pixmap_type_get(ec->pixmap) != E_PIXMAP_TYPE_WL) return
/* local functions */
static void
_e_comp_wl_log_cb_print(const char *format, va_list args)
{
INF("WL: ", format, args);
}
static void
_e_comp_wl_cb_del(E_Comp *comp)
{
@ -35,6 +41,9 @@ _e_comp_wl_compositor_create(void)
/* create new compositor data */
cdata = E_NEW(E_Comp_Data, 1);
/* set wayland log handler */
wl_log_set_handler_server(_e_comp_wl_log_cb_print);
return EINA_TRUE;
}