src/modules/wl_desktop_shell/tizen_extension_server_protocol.h \
src/modules/wl_desktop_shell/tizen_extension_protocol.c \
src/modules/wl_desktop_shell/tizen_subsurface_server_protocol.h \
- src/modules/wl_desktop_shell/tizen_subsurface_protocol.c
+ src/modules/wl_desktop_shell/tizen_subsurface_protocol.c \
+ src/modules/wl_desktop_shell/tizen_transient_for_server_protocol.h \
+ src/modules/wl_desktop_shell/tizen_transient_for_protocol.c
PHONIES += wl_desktop_shell install-wl_desktop_shell
wl_desktop_shell: $(wl_desktop_shellpkg_LTLIBRARIES) $(wl_desktop_shell_DATA)
#include "e_scaler.h"
#include "tizen_extension_server_protocol.h"
#include "tizen_subsurface_server_protocol.h"
+#include "tizen_transient_for_server_protocol.h"
#define XDG_SERVER_VERSION 4
<arg name="surface" type="object" interface="wl_surface" />
</request>
</interface>
- <interface name="tizen_transient_for" version="1">
- <request name="set">
- <arg name="child_id" type="uint" />
- <arg name="parent_id" type="uint" />
- </request>
- <event name="done">
- <arg name="child_id" type="uint"/>
- </event>
- </interface>
</protocol>
static const struct wl_interface *types[] = {
NULL,
- NULL,
&tizen_resource_interface,
&wl_surface_interface,
};
};
static const struct wl_message tizen_surface_extension_requests[] = {
- { "get_tizen_resource", "no", types + 2 },
+ { "get_tizen_resource", "no", types + 1 },
};
WL_EXPORT const struct wl_interface tizen_surface_extension_interface = {
0, NULL,
};
-static const struct wl_message tizen_transient_for_requests[] = {
- { "set", "uu", types + 0 },
-};
-
-static const struct wl_message tizen_transient_for_events[] = {
- { "done", "u", types + 0 },
-};
-
-WL_EXPORT const struct wl_interface tizen_transient_for_interface = {
- "tizen_transient_for", 1,
- 1, tizen_transient_for_requests,
- 1, tizen_transient_for_events,
-};
-
struct tizen_resource;
struct tizen_surface_extension;
-struct tizen_transient_for;
+struct wl_surface;
extern const struct wl_interface tizen_resource_interface;
extern const struct wl_interface tizen_surface_extension_interface;
-extern const struct wl_interface tizen_transient_for_interface;
+extern const struct wl_interface wl_surface_interface;
struct tizen_resource_interface {
/**
};
-struct tizen_transient_for_interface {
- /**
- * set - (none)
- * @child_id: (none)
- * @parent_id: (none)
- */
- void (*set)(struct wl_client *client,
- struct wl_resource *resource,
- uint32_t child_id,
- uint32_t parent_id);
-};
-
-#define TIZEN_TRANSIENT_FOR_DONE 0
-
-#define TIZEN_TRANSIENT_FOR_DONE_SINCE_VERSION 1
-
-static inline void
-tizen_transient_for_send_done(struct wl_resource *resource_, uint32_t child_id)
-{
- wl_resource_post_event(resource_, TIZEN_TRANSIENT_FOR_DONE, child_id);
-}
-
#ifdef __cplusplus
}
#endif
--- /dev/null
+<protocol name="tizen_transient_for">
+ <interface name="tizen_transient_for" version="1">
+ <request name="set">
+ <arg name="child_id" type="uint" />
+ <arg name="parent_id" type="uint" />
+ </request>
+ <event name="done">
+ <arg name="child_id" type="uint"/>
+ </event>
+ </interface>
+</protocol>
--- /dev/null
+#include <stdlib.h>
+#include <stdint.h>
+#include "wayland-util.h"
+
+
+static const struct wl_interface *types[] = {
+ NULL,
+ NULL,
+};
+
+static const struct wl_message tizen_transient_for_requests[] = {
+ { "set", "uu", types + 0 },
+};
+
+static const struct wl_message tizen_transient_for_events[] = {
+ { "done", "u", types + 0 },
+};
+
+WL_EXPORT const struct wl_interface tizen_transient_for_interface = {
+ "tizen_transient_for", 1,
+ 1, tizen_transient_for_requests,
+ 1, tizen_transient_for_events,
+};
+
--- /dev/null
+#ifndef TIZEN_TRANSIENT_FOR_SERVER_PROTOCOL_H
+#define TIZEN_TRANSIENT_FOR_SERVER_PROTOCOL_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdint.h>
+#include <stddef.h>
+#include "wayland-server.h"
+
+struct wl_client;
+struct wl_resource;
+
+struct tizen_transient_for;
+
+extern const struct wl_interface tizen_transient_for_interface;
+
+struct tizen_transient_for_interface {
+ /**
+ * set - (none)
+ * @child_id: (none)
+ * @parent_id: (none)
+ */
+ void (*set)(struct wl_client *client,
+ struct wl_resource *resource,
+ uint32_t child_id,
+ uint32_t parent_id);
+};
+
+#define TIZEN_TRANSIENT_FOR_DONE 0
+
+#define TIZEN_TRANSIENT_FOR_DONE_SINCE_VERSION 1
+
+static inline void
+tizen_transient_for_send_done(struct wl_resource *resource_, uint32_t child_id)
+{
+ wl_resource_post_event(resource_, TIZEN_TRANSIENT_FOR_DONE, child_id);
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif