#include <wayland-tbm-server.h>
#include <glib.h>
+#include <libds/log.h>
+
/* handle include for printing uint64_t */
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
_e_comp_wl_connected_client_create(client, name, pid, uid, gid);
}
+static void
+_e_comp_wl_ds_log_handler(enum ds_log_level level, const char *fmt, va_list args)
+{
+ char buf[1024] = {0, };
+
+ vsnprintf(buf, 1024, fmt, args);
+ switch (level)
+ {
+ case DS_DBG:
+ DBG("[libds] %s", buf);
+ break;
+ case DS_INF:
+ INF("[libds] %s", buf);
+ break;
+ case DS_ERR:
+ ERR("[libds] %s", buf);
+ break;
+ default:
+ break;
+ }
+}
+
static Eina_Bool
_e_comp_wl_display_create(void)
{
/* wl_cdata->output.transform = WL_OUTPUT_TRANSFORM_NORMAL; */
/* wl_cdata->output.scale = e_scale; */
+ ds_log_init(DS_DBG, _e_comp_wl_ds_log_handler);
+
if (!e_compositor_init(wl_cdata->wl.disp))
{
ERR("Failed to initialize compositor");