devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1af91f3c614187cb2df7cfbb54f1369d3e096bfd

commit 1af91f3c614187cb2df7cfbb54f1369d3e096bfd
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Aug 18 12:52:34 2015 -0400

    ecore-wl2: Add wayland log handler callback to print wl log messages
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/ecore_wl2.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/lib/ecore_wl2/ecore_wl2.c b/src/lib/ecore_wl2/ecore_wl2.c
index 5b643fb..5eb377e 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;
 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:

-- 


Reply via email to