2018-12-07 14:50:51 +00:00
|
|
|
/*
|
|
|
|
* This an unstable interface of wlroots. No guarantees are made regarding the
|
|
|
|
* future consistency of this API.
|
|
|
|
*/
|
|
|
|
#ifndef WLR_USE_UNSTABLE
|
|
|
|
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef WLR_TYPES_WLR_DATA_CONTROL_V1_H
|
|
|
|
#define WLR_TYPES_WLR_DATA_CONTROL_V1_H
|
|
|
|
|
2019-07-27 08:53:54 +00:00
|
|
|
#include <wayland-server-core.h>
|
2018-12-07 14:50:51 +00:00
|
|
|
#include <wlr/types/wlr_seat.h>
|
|
|
|
|
|
|
|
struct wlr_data_control_manager_v1 {
|
|
|
|
struct wl_global *global;
|
2018-12-30 01:52:03 +00:00
|
|
|
struct wl_list devices; // wlr_data_control_device_v1::link
|
2018-12-07 14:50:51 +00:00
|
|
|
|
|
|
|
struct {
|
|
|
|
struct wl_signal destroy;
|
2018-12-30 01:52:03 +00:00
|
|
|
struct wl_signal new_device; // wlr_data_control_device_v1
|
2018-12-07 14:50:51 +00:00
|
|
|
} events;
|
|
|
|
|
|
|
|
struct wl_listener display_destroy;
|
|
|
|
};
|
|
|
|
|
2018-12-30 01:52:03 +00:00
|
|
|
struct wlr_data_control_device_v1 {
|
2018-12-07 14:50:51 +00:00
|
|
|
struct wl_resource *resource;
|
|
|
|
struct wlr_data_control_manager_v1 *manager;
|
2018-12-30 01:52:03 +00:00
|
|
|
struct wl_list link; // wlr_data_control_manager_v1::devices
|
2018-12-07 14:50:51 +00:00
|
|
|
|
|
|
|
struct wlr_seat *seat;
|
|
|
|
struct wl_resource *selection_offer_resource; // current selection offer
|
2019-02-01 09:49:46 +00:00
|
|
|
struct wl_resource *primary_selection_offer_resource; // current primary selection offer
|
2018-12-07 14:50:51 +00:00
|
|
|
|
|
|
|
struct wl_listener seat_destroy;
|
2018-11-29 18:30:04 +00:00
|
|
|
struct wl_listener seat_set_selection;
|
2019-02-01 09:49:46 +00:00
|
|
|
struct wl_listener seat_set_primary_selection;
|
2018-12-07 14:50:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct wlr_data_control_manager_v1 *wlr_data_control_manager_v1_create(
|
|
|
|
struct wl_display *display);
|
|
|
|
|
2018-12-30 01:52:03 +00:00
|
|
|
void wlr_data_control_device_v1_destroy(
|
|
|
|
struct wlr_data_control_device_v1 *device);
|
2018-12-07 14:50:51 +00:00
|
|
|
|
|
|
|
#endif
|