tizen-surface: renew tizen-surface protocol path 62/166462/3 accepted/tizen/unified/20180119.061050 submit/tizen/20180116.114446
authorJunSeok, Kim <juns.kim@samsung.com>
Wed, 10 Jan 2018 08:54:40 +0000 (17:54 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Tue, 16 Jan 2018 05:21:47 +0000 (05:21 +0000)
Change-Id: I7c69a98c5a351ac53f2b40696e19189e62d74b68

configure.ac
packaging/efl.spec
src/Makefile_Evas.am
src/modules/evas/engines/wayland_shm/evas_outbuf.c [changed mode: 0644->0755]
src/modules/evas/engines/wayland_shm/evas_shm.c [changed mode: 0755->0644]
src/modules/evas/engines/wayland_shm/evas_tbmbuf.c
src/modules/evas/engines/wayland_shm/tizen-surface-client.h [deleted file]
src/modules/evas/engines/wayland_shm/tizen-surface-protocol.c [deleted file]

index c9f19c8..ae08a06 100755 (executable)
@@ -1389,7 +1389,8 @@ AC_ARG_ENABLE([wayland],
    [want_wayland="no"])
 
 if test "${want_wayland}" = "yes"; then
-   EFL_PKG_CHECK_STRICT([wayland-client >= 1.7.0])
+   EFL_PKG_CHECK_STRICT([wayland-client >= 1.7.0 tizen-surface-client])
+   EFL_DEPEND_PKG([EVAS],[WAYLAND],[tizen-surface-client])
 fi
 
 # Wayland IVI-Shell
index 9cf168d..8baf609 100644 (file)
@@ -29,6 +29,7 @@ BuildRequires:  pkgconfig(wayland-tbm-client)
 BuildRequires:  pkgconfig(wayland-tbm-server)
 BuildRequires:  pkgconfig(tizen-extension-client)
 BuildRequires:  pkgconfig(tizen-remote-surface-client)
+BuildRequires:  pkgconfig(tizen-surface-client)
 Requires:       libwayland-extension-client
 %endif
 
index 3e03a29..16edaa9 100644 (file)
@@ -1185,8 +1185,7 @@ modules/evas/engines/wayland_shm/evas_engine.c \
 modules/evas/engines/wayland_shm/evas_engine.h \
 modules/evas/engines/wayland_shm/evas_shm.c \
 modules/evas/engines/wayland_shm/evas_tbmbuf.c \
-modules/evas/engines/wayland_shm/evas_outbuf.c \
-modules/evas/engines/wayland_shm/tizen-surface-protocol.c
+modules/evas/engines/wayland_shm/evas_outbuf.c
 if EVAS_STATIC_BUILD_WAYLAND_SHM
 lib_evas_libevas_la_SOURCES += $(WAYLAND_SHM_SOURCES)
 lib_evas_libevas_la_CPPFLAGS += @evas_engine_wayland_shm_cflags@
old mode 100755 (executable)
new mode 100644 (file)
index abc4d57..425da67
@@ -3,7 +3,7 @@
 #include "evas_engine.h"
 #include <sys/mman.h>
 
-#include "tizen-surface-client.h"
+#include <tizen-surface-client-protocol.h>
 
 typedef struct _Shm_Pool Shm_Pool;
 struct _Shm_Pool
index a931fc9..035886a 100644 (file)
@@ -8,7 +8,7 @@
 #include <dlfcn.h>
 #include <wayland-client.h>
 
-#include "tizen-surface-client.h"
+#include <tizen-surface-client-protocol.h>
 
 #define KEY_WINDOW (unsigned long)(&key_window)
 #define KEY_WL_BUFFER (unsigned long)(&key_wl_buffer)
diff --git a/src/modules/evas/engines/wayland_shm/tizen-surface-client.h b/src/modules/evas/engines/wayland_shm/tizen-surface-client.h
deleted file mode 100644 (file)
index 6eaa459..0000000
+++ /dev/null
@@ -1,118 +0,0 @@
-#ifndef TIZEN_SURFACE_CLIENT_PROTOCOL_H
-#define TIZEN_SURFACE_CLIENT_PROTOCOL_H
-
-#ifdef  __cplusplus
-extern "C" {
-#endif
-
-#include <stdint.h>
-#include <stddef.h>
-#include "wayland-client.h"
-
-struct wl_client;
-struct wl_resource;
-
-struct tizen_surface_shm;
-struct tizen_surface_shm_flusher;
-struct wl_surface;
-
-extern const struct wl_interface tizen_surface_shm_interface;
-extern const struct wl_interface tizen_surface_shm_flusher_interface;
-
-#define TIZEN_SURFACE_SHM_GET_FLUSHER  0
-
-#define TIZEN_SURFACE_SHM_GET_FLUSHER_SINCE_VERSION    1
-
-static inline void
-tizen_surface_shm_set_user_data(struct tizen_surface_shm *tizen_surface_shm, void *user_data)
-{
-       wl_proxy_set_user_data((struct wl_proxy *) tizen_surface_shm, user_data);
-}
-
-static inline void *
-tizen_surface_shm_get_user_data(struct tizen_surface_shm *tizen_surface_shm)
-{
-       return wl_proxy_get_user_data((struct wl_proxy *) tizen_surface_shm);
-}
-
-static inline uint32_t
-tizen_surface_shm_get_version(struct tizen_surface_shm *tizen_surface_shm)
-{
-       return wl_proxy_get_version((struct wl_proxy *) tizen_surface_shm);
-}
-
-static inline void
-tizen_surface_shm_destroy(struct tizen_surface_shm *tizen_surface_shm)
-{
-       wl_proxy_destroy((struct wl_proxy *) tizen_surface_shm);
-}
-
-static inline struct tizen_surface_shm_flusher *
-tizen_surface_shm_get_flusher(struct tizen_surface_shm *tizen_surface_shm, struct wl_surface *surface)
-{
-       struct wl_proxy *id;
-
-       id = wl_proxy_marshal_constructor((struct wl_proxy *) tizen_surface_shm,
-                        TIZEN_SURFACE_SHM_GET_FLUSHER, &tizen_surface_shm_flusher_interface, NULL, surface);
-
-       return (struct tizen_surface_shm_flusher *) id;
-}
-
-struct tizen_surface_shm_flusher_listener {
-       /**
-        * flush - (none)
-        */
-       void (*flush)(void *data,
-                     struct tizen_surface_shm_flusher *tizen_surface_shm_flusher);
-       /**
-        * free_flush - (none)
-        * @since: 2
-        */
-       void (*free_flush)(void *data,
-                          struct tizen_surface_shm_flusher *tizen_surface_shm_flusher);
-};
-
-static inline int
-tizen_surface_shm_flusher_add_listener(struct tizen_surface_shm_flusher *tizen_surface_shm_flusher,
-                                      const struct tizen_surface_shm_flusher_listener *listener, void *data)
-{
-       return wl_proxy_add_listener((struct wl_proxy *) tizen_surface_shm_flusher,
-                                    (void (**)(void)) listener, data);
-}
-
-#define TIZEN_SURFACE_SHM_FLUSHER_DESTROY      0
-
-#define TIZEN_SURFACE_SHM_FLUSHER_DESTROY_SINCE_VERSION        1
-
-static inline void
-tizen_surface_shm_flusher_set_user_data(struct tizen_surface_shm_flusher *tizen_surface_shm_flusher, void *user_data)
-{
-       wl_proxy_set_user_data((struct wl_proxy *) tizen_surface_shm_flusher, user_data);
-}
-
-static inline void *
-tizen_surface_shm_flusher_get_user_data(struct tizen_surface_shm_flusher *tizen_surface_shm_flusher)
-{
-       return wl_proxy_get_user_data((struct wl_proxy *) tizen_surface_shm_flusher);
-}
-
-static inline uint32_t
-tizen_surface_shm_flusher_get_version(struct tizen_surface_shm_flusher *tizen_surface_shm_flusher)
-{
-       return wl_proxy_get_version((struct wl_proxy *) tizen_surface_shm_flusher);
-}
-
-static inline void
-tizen_surface_shm_flusher_destroy(struct tizen_surface_shm_flusher *tizen_surface_shm_flusher)
-{
-       wl_proxy_marshal((struct wl_proxy *) tizen_surface_shm_flusher,
-                        TIZEN_SURFACE_SHM_FLUSHER_DESTROY);
-
-       wl_proxy_destroy((struct wl_proxy *) tizen_surface_shm_flusher);
-}
-
-#ifdef  __cplusplus
-}
-#endif
-
-#endif
diff --git a/src/modules/evas/engines/wayland_shm/tizen-surface-protocol.c b/src/modules/evas/engines/wayland_shm/tizen-surface-protocol.c
deleted file mode 100644 (file)
index bd5e8a6..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#include <stdlib.h>
-#include <stdint.h>
-#include "wayland-util.h"
-
-extern const struct wl_interface tizen_surface_shm_flusher_interface;
-extern const struct wl_interface wl_surface_interface;
-
-static const struct wl_interface *types[] = {
-       &tizen_surface_shm_flusher_interface,
-       &wl_surface_interface,
-};
-
-static const struct wl_message tizen_surface_shm_requests[] = {
-       { "get_flusher", "no", types + 0 },
-};
-
-WL_EXPORT const struct wl_interface tizen_surface_shm_interface = {
-       "tizen_surface_shm", 2,
-       1, tizen_surface_shm_requests,
-       0, NULL,
-};
-
-static const struct wl_message tizen_surface_shm_flusher_requests[] = {
-       { "destroy", "", types + 0 },
-};
-
-static const struct wl_message tizen_surface_shm_flusher_events[] = {
-       { "flush", "", types + 0 },
-       { "free_flush", "2", types + 0 },
-};
-
-WL_EXPORT const struct wl_interface tizen_surface_shm_flusher_interface = {
-       "tizen_surface_shm_flusher", 2,
-       1, tizen_surface_shm_flusher_requests,
-       2, tizen_surface_shm_flusher_events,
-};
-