From 88078eff9cf491db0d365d09da5b4eb83583e96f Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Tue, 21 Feb 2023 13:29:06 +0900 Subject: [PATCH 1/1] Expose ds_tbm_server as ABI Change-Id: I19f37aaad954245ede523299f0c52a6a41390e17 --- include/libds-tizen/types/tbm_server.h | 18 ++++++++++++++++++ packaging/libds-tizen.spec | 1 + src/tbm_server/tbm_server.h | 12 +----------- 3 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 include/libds-tizen/types/tbm_server.h diff --git a/include/libds-tizen/types/tbm_server.h b/include/libds-tizen/types/tbm_server.h new file mode 100644 index 0000000..2f97929 --- /dev/null +++ b/include/libds-tizen/types/tbm_server.h @@ -0,0 +1,18 @@ +#ifndef LIBDS_TIZEN_TYPES_TBM_SERVER_H +#define LIBDS_TIZEN_TYPES_TBM_SERVER_H + +#include +#include + +struct ds_tbm_server +{ + struct wayland_tbm_server *wl_tbm; + + struct wl_listener display_destroy; + + struct { + struct wl_signal destroy; + } events; +}; + +#endif diff --git a/packaging/libds-tizen.spec b/packaging/libds-tizen.spec index a4efb47..6311697 100644 --- a/packaging/libds-tizen.spec +++ b/packaging/libds-tizen.spec @@ -471,6 +471,7 @@ ninja -C builddir install %defattr(-,root,root,-) %license LICENSE %{_includedir}/libds-tizen/tbm_server.h +%{_includedir}/libds-tizen/types/tbm_server.h %{_libdir}/pkgconfig/libds-tizen-tbm-server.pc %{_libdir}/libds-tizen-tbm-server.so diff --git a/src/tbm_server/tbm_server.h b/src/tbm_server/tbm_server.h index 58e391b..3ae00f3 100644 --- a/src/tbm_server/tbm_server.h +++ b/src/tbm_server/tbm_server.h @@ -5,17 +5,7 @@ #include #include #include - -struct ds_tbm_server -{ - struct wayland_tbm_server *wl_tbm; - - struct wl_listener display_destroy; - - struct { - struct wl_signal destroy; - } events; -}; +#include struct ds_tbm_client_buffer { -- 2.7.4