add code to setup wayland logging function
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
2c987f146b
commit
c7d87c1631
|
@ -7,6 +7,12 @@
|
||||||
if (e_pixmap_type_get(ec->pixmap) != E_PIXMAP_TYPE_WL) return
|
if (e_pixmap_type_get(ec->pixmap) != E_PIXMAP_TYPE_WL) return
|
||||||
|
|
||||||
/* local functions */
|
/* local functions */
|
||||||
|
static void
|
||||||
|
_e_comp_wl_log_cb_print(const char *format, va_list args)
|
||||||
|
{
|
||||||
|
INF("WL: ", format, args);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_e_comp_wl_cb_del(E_Comp *comp)
|
_e_comp_wl_cb_del(E_Comp *comp)
|
||||||
{
|
{
|
||||||
|
@ -35,6 +41,9 @@ _e_comp_wl_compositor_create(void)
|
||||||
/* create new compositor data */
|
/* create new compositor data */
|
||||||
cdata = E_NEW(E_Comp_Data, 1);
|
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;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue