From 3a86573c836fcbe7cb6072e5607b4216c6c5c133 Mon Sep 17 00:00:00 2001 From: "Li,Limin" Date: Wed, 8 Jan 2014 18:01:31 +0800 Subject: init wayland support The display server based on X or Wayland, is now a choice of different profile in Tizen 3.0. Basically and consistently, two macros were used "with wayland" and "with x". Below summarize the combination of the macros: | wayland | x | meaning |--------------------------- | 0 | 1 | pure X11 platform(no wayland) | 1 | 0 | pure wayland platform (no X11) | 1 | 1 | wayland but X compatibility | 0 | 0 | no X and no wayland This method unifies the meaning and usage. Deploy this method to ui-gadget package. Signed-off-by: Li,Limin Change-Id: Iceb95b03f824860b2aac74f35c0945380f6cc22a --- src/ug.c | 2 ++ 1 file changed, 2 insertions(+) mode change 100755 => 100644 src/ug.c (limited to 'src/ug.c') diff --git a/src/ug.c b/src/ug.c old mode 100755 new mode 100644 index 3ee636f..af5bc47 --- a/src/ug.c +++ b/src/ug.c @@ -94,6 +94,7 @@ UG_API ui_gadget_h ug_create(ui_gadget_h parent, return ugman_ug_load(parent, name, mode, service, cbs); } +#ifndef WAYLAND UG_API int ug_init(Display *disp, Window xid, void *win, enum ug_option opt) { if (!win || !xid || !disp) { @@ -108,6 +109,7 @@ UG_API int ug_init(Display *disp, Window xid, void *win, enum ug_option opt) return ugman_init(disp, xid, win, opt); } +#endif UG_API int ug_pause(void) { -- cgit v1.2.3