summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-08-18 12:52:34 -0400
committerChris Michael <cp.michael@samsung.com>2015-12-03 12:02:40 -0500
commit1af91f3c614187cb2df7cfbb54f1369d3e096bfd (patch)
tree93360db17a1e146432d4383edd50ac81e1ec39dc /src/lib/ecore_wl2/ecore_wl2.c
parent8c8334ad2d938ccbe31cae59ffeeadda969e1807 (diff)
ecore-wl2: Add wayland log handler callback to print wl log messages
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2.c8
1 files changed, 8 insertions, 0 deletions
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;
14EAPI int ECORE_WL2_EVENT_GLOBAL_ADDED = 0; 14EAPI int ECORE_WL2_EVENT_GLOBAL_ADDED = 0;
15EAPI int ECORE_WL2_EVENT_GLOBAL_REMOVED = 0; 15EAPI int ECORE_WL2_EVENT_GLOBAL_REMOVED = 0;
16 16
17static void
18_cb_wl_log_print(const char *format, va_list args)
19{
20 EINA_LOG_DOM_INFO(_ecore_wl2_log_dom, format, args);
21}
22
17/* public API functions */ 23/* public API functions */
18EAPI int 24EAPI int
19ecore_wl2_init(void) 25ecore_wl2_init(void)
@@ -53,6 +59,8 @@ ecore_wl2_init(void)
53 ECORE_WL2_EVENT_GLOBAL_REMOVED = ecore_event_type_new(); 59 ECORE_WL2_EVENT_GLOBAL_REMOVED = ecore_event_type_new();
54 } 60 }
55 61
62 wl_log_set_handler_server(_cb_wl_log_print);
63
56 return _ecore_wl2_init_count; 64 return _ecore_wl2_init_count;
57 65
58ecore_event_err: 66ecore_event_err: