diff options
author | Chris Michael <cp.michael@samsung.com> | 2015-08-18 12:52:34 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2015-12-03 12:02:40 -0500 |
commit | 1af91f3c614187cb2df7cfbb54f1369d3e096bfd (patch) | |
tree | 93360db17a1e146432d4383edd50ac81e1ec39dc /src/lib/ecore_wl2/ecore_wl2.c | |
parent | 8c8334ad2d938ccbe31cae59ffeeadda969e1807 (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.c | 8 |
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; | |||
14 | EAPI int ECORE_WL2_EVENT_GLOBAL_ADDED = 0; | 14 | EAPI int ECORE_WL2_EVENT_GLOBAL_ADDED = 0; |
15 | EAPI int ECORE_WL2_EVENT_GLOBAL_REMOVED = 0; | 15 | EAPI int ECORE_WL2_EVENT_GLOBAL_REMOVED = 0; |
16 | 16 | ||
17 | static 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 */ |
18 | EAPI int | 24 | EAPI int |
19 | ecore_wl2_init(void) | 25 | ecore_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 | ||
58 | ecore_event_err: | 66 | ecore_event_err: |