aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-12-22 19:20:12 +0100
committeremersion <contact@emersion.fr>2017-12-22 19:20:12 +0100
commit0a171d3acec825b5a9115907b339dc29aec678fa (patch)
tree6af2f427ba33f1b50716eb4a7822a3c04071739e /include/wlr
parent0a370c529806077a11638e7fa856d5fbb539496b (diff)
Add wlr_primary_selection_device_manager and wlr_primary_selection_source
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_primary_selection.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_primary_selection.h b/include/wlr/types/wlr_primary_selection.h
new file mode 100644
index 00000000..edbaf81e
--- /dev/null
+++ b/include/wlr/types/wlr_primary_selection.h
@@ -0,0 +1,31 @@
+#ifndef WLR_TYPES_WLR_PRIMARY_SELECTION_H
+#define WLR_TYPES_WLR_PRIMARY_SELECTION_H
+
+#include <wayland-server.h>
+
+struct wlr_primary_selection_device_manager {
+ struct wl_global *global;
+
+ struct wl_listener display_destroy;
+
+ void *data;
+};
+
+struct wlr_primary_selection_source {
+ struct wl_resource *resource;
+
+ struct wl_array mime_types;
+
+ struct {
+ struct wl_signal destroy;
+ } events;
+
+ void *data;
+};
+
+struct wlr_primary_selection_device_manager *
+ wlr_primary_selection_device_manager_create(struct wl_display *display);
+void wlr_primary_selection_device_manager_destroy(
+ struct wlr_primary_selection_device_manager *manager);
+
+#endif