diff options
author | nyorain <nyorain@gmail.com> | 2017-08-18 18:51:09 +0200 |
---|---|---|
committer | nyorain <nyorain@gmail.com> | 2017-08-18 18:56:21 +0200 |
commit | 86314caa5b6bd382c7532491d8fc02cafcdf7970 (patch) | |
tree | 5385a4f0506099c983f107dc1a2acb092c737e5e /include/wlr/interfaces | |
parent | e5fd858394831388ad0677960387ed4a5331df47 (diff) |
Implement wlr_data_{source,device,device_manager}
Diffstat (limited to 'include/wlr/interfaces')
-rw-r--r-- | include/wlr/interfaces/wlr_data_source.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 <wlr/types/wlr_data_source.h> + +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 |