mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
data-device: make sources inert, rename cancel to destroy
This commit is contained in:
parent
4cb0697e57
commit
1150ff13ce
6 changed files with 45 additions and 38 deletions
|
|
@ -55,7 +55,7 @@ struct wlr_data_source_impl {
|
|||
int32_t fd);
|
||||
void (*accept)(struct wlr_data_source *source, uint32_t serial,
|
||||
const char *mime_type);
|
||||
void (*cancel)(struct wlr_data_source *source);
|
||||
void (*destroy)(struct wlr_data_source *source);
|
||||
|
||||
void (*dnd_drop)(struct wlr_data_source *source);
|
||||
void (*dnd_finish)(struct wlr_data_source *source);
|
||||
|
|
@ -186,11 +186,6 @@ void wlr_seat_set_selection(struct wlr_seat *seat,
|
|||
void wlr_data_source_init(struct wlr_data_source *source,
|
||||
const struct wlr_data_source_impl *impl);
|
||||
|
||||
/**
|
||||
* Finishes the data source.
|
||||
*/
|
||||
void wlr_data_source_finish(struct wlr_data_source *source);
|
||||
|
||||
/**
|
||||
* Sends the data as the specified MIME type over the passed file descriptor,
|
||||
* then close it.
|
||||
|
|
@ -207,9 +202,9 @@ void wlr_data_source_accept(struct wlr_data_source *source, uint32_t serial,
|
|||
|
||||
/**
|
||||
* Notifies the data source it is no longer valid and should be destroyed. That
|
||||
* potentially destroys immediately the data source.
|
||||
* destroys immediately the data source.
|
||||
*/
|
||||
void wlr_data_source_cancel(struct wlr_data_source *source);
|
||||
void wlr_data_source_destroy(struct wlr_data_source *source);
|
||||
|
||||
/**
|
||||
* Notifies the data source that the drop operation was performed. This does not
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue