diff options
author | emersion <contact@emersion.fr> | 2018-12-09 11:50:28 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-01-24 12:12:55 +0100 |
commit | 1150ff13ceeeb76ce17c8b7a8ca199230d7b87f9 (patch) | |
tree | c18db038da3490a16c1cb281d7808263600d9277 /include | |
parent | 4cb0697e576820774013f399c89fe85673e2f338 (diff) |
data-device: make sources inert, rename cancel to destroy
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_data_device.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/wlr/types/wlr_data_device.h b/include/wlr/types/wlr_data_device.h index 4ab181db..1d2451b9 100644 --- a/include/wlr/types/wlr_data_device.h +++ b/include/wlr/types/wlr_data_device.h @@ -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); @@ -187,11 +187,6 @@ 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 |