aboutsummaryrefslogtreecommitdiff
path: root/src/waffle/wayland/wayland_platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/waffle/wayland/wayland_platform.h')
-rw-r--r--src/waffle/wayland/wayland_platform.h30
1 files changed, 17 insertions, 13 deletions
diff --git a/src/waffle/wayland/wayland_platform.h b/src/waffle/wayland/wayland_platform.h
index 9b9fc92..8f5a11a 100644
--- a/src/waffle/wayland/wayland_platform.h
+++ b/src/waffle/wayland/wayland_platform.h
@@ -23,23 +23,27 @@
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-/// @defgroup wayland_platform wayland_platform
-/// @ingroup wayland
-/// @{
-
-/// @file
-
#pragma once
#include <stdbool.h>
+#include <stdlib.h>
+
+#undef linux
+
+#include <waffle/core/wcore_platform.h>
+#include <waffle/core/wcore_util.h>
-struct native_dispatch;
-union native_platform;
+struct linux_platform;
-union native_platform*
-wayland_platform_create(const struct native_dispatch **dispatch);
+struct wayland_platform {
+ struct wcore_platform wcore;
+ struct linux_platform *linux;
+};
-bool
-wayland_platform_destroy(union native_platform *self);
+DEFINE_CONTAINER_CAST_FUNC(wayland_platform,
+ struct wayland_platform,
+ struct wcore_platform,
+ wcore)
-/// @}
+struct wcore_platform*
+wayland_platform_create(void);