aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_data_device.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_data_device.h b/include/wlr/types/wlr_data_device.h
index 6c5dc097..b4aa024a 100644
--- a/include/wlr/types/wlr_data_device.h
+++ b/include/wlr/types/wlr_data_device.h
@@ -36,6 +36,12 @@ struct wlr_data_source {
uint32_t compositor_action;
bool actions_set;
+ void (*accept)(struct wlr_data_source *source, uint32_t serial,
+ const char *mime_type);
+ void (*send)(struct wlr_data_source *source, const char *mime_type,
+ int32_t fd);
+ void (*cancel)(struct wlr_data_source *source);
+
struct {
struct wl_signal destroy;
} events;
@@ -72,4 +78,7 @@ struct wlr_data_device_manager *wlr_data_device_manager_create(
*/
void wlr_seat_handle_send_selection(struct wlr_seat_handle *handle);
+void wlr_seat_set_selection(struct wlr_seat *seat,
+ struct wlr_data_source *source, uint32_t serial);
+
#endif