From 1150ff13ceeeb76ce17c8b7a8ca199230d7b87f9 Mon Sep 17 00:00:00 2001 From: emersion Date: Sun, 9 Dec 2018 11:50:28 +0100 Subject: data-device: make sources inert, rename cancel to destroy --- include/wlr/types/wlr_data_device.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'include/wlr') 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); @@ -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 -- cgit v1.2.3