Expose ds_subsurface as ABI 45/294245/2
authorSeunghun Lee <shiin.lee@samsung.com>
Wed, 22 Feb 2023 05:35:35 +0000 (14:35 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Thu, 15 Jun 2023 03:51:51 +0000 (03:51 +0000)
Change-Id: I57a13628ea72393ec0b4d89442ee20bc9b5751b0

include/libds/types/ds_subsurface.h [new file with mode: 0644]
src/compositor/compositor_private.h

diff --git a/include/libds/types/ds_subsurface.h b/include/libds/types/ds_subsurface.h
new file mode 100644 (file)
index 0000000..b50b962
--- /dev/null
@@ -0,0 +1,40 @@
+#ifndef LIBDS_TYPES_DS_SUBSURFACE_H
+#define LIBDS_TYPES_DS_SUBSURFACE_H
+
+#include <wayland-server.h>
+
+#include <libds/types/ds_surface.h>
+#include <libds/subsurface.h>
+
+struct ds_subsurface_parent_state
+{
+    int32_t x, y;
+    struct wl_list link;
+};
+
+struct ds_subsurface
+{
+    struct wl_resource *resource;
+    struct ds_surface *surface;
+    struct ds_surface *parent;
+
+    struct ds_subsurface_parent_state current, pending;
+
+    struct {
+        struct wl_signal destroy;
+    } events;
+
+    struct {
+        struct wl_listener surface_destroy;
+        struct wl_listener parent_destroy;
+    } listener;
+
+    struct ds_surface_state cached;
+    bool has_cache;
+
+    bool synchronized;
+    bool reordered;
+    bool mapped;
+};
+
+#endif
index d8cf53b..1663014 100644 (file)
@@ -10,6 +10,7 @@
 #include "libds/util/box.h"
 #include "libds/util/addon.h"
 #include "libds/types/ds_surface.h"
+#include "libds/types/ds_subsurface.h"
 #include "surface.h"
 #include "util.h"
 
@@ -18,37 +19,6 @@ struct ds_subcompositor
     struct wl_global *global;
 };
 
-struct ds_subsurface_parent_state
-{
-    int32_t x, y;
-    struct wl_list link;
-};
-
-struct ds_subsurface
-{
-    struct wl_resource *resource;
-    struct ds_surface *surface;
-    struct ds_surface *parent;
-
-    struct ds_subsurface_parent_state current, pending;
-
-    struct {
-        struct wl_signal destroy;
-    } events;
-
-    struct {
-        struct wl_listener surface_destroy;
-        struct wl_listener parent_destroy;
-    } listener;
-
-    struct ds_surface_state cached;
-    bool has_cache;
-
-    bool synchronized;
-    bool reordered;
-    bool mapped;
-};
-
 bool subcompositor_init(struct ds_subcompositor *subcomp,
         struct wl_display *display);