From 86314caa5b6bd382c7532491d8fc02cafcdf7970 Mon Sep 17 00:00:00 2001 From: nyorain Date: Fri, 18 Aug 2017 18:51:09 +0200 Subject: Implement wlr_data_{source,device,device_manager} --- include/wlr/interfaces/wlr_data_source.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/wlr/interfaces/wlr_data_source.h (limited to 'include/wlr/interfaces/wlr_data_source.h') diff --git a/include/wlr/interfaces/wlr_data_source.h b/include/wlr/interfaces/wlr_data_source.h new file mode 100644 index 00000000..221c8007 --- /dev/null +++ b/include/wlr/interfaces/wlr_data_source.h @@ -0,0 +1,15 @@ +#ifndef _WLR_INTERFACES_DATA_SOURCE_H +#define _WLR_INTERFACES_DATA_SOURCE_H +#include + +struct wlr_data_source_impl { + void (*send)(struct wlr_data_source *data_source, const char *type, int fd); + void (*accepted)(struct wlr_data_source *data_source, const char *type); + void (*cancelled)(struct wlr_data_source *data_source); +}; + +bool wlr_data_source_init(struct wlr_data_source *source, + struct wlr_data_source_impl *impl); +void wlr_data_source_finish(struct wlr_data_source *source); + +#endif -- cgit v1.2.3