diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-08-18 14:05:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-18 14:05:51 -0400 |
commit | a1551bccc05caeb77ee7ce5e4151de964f29f444 (patch) | |
tree | 44f96d69d6d9c16645c1e28b5d1b937fc4e93aa1 /include/wlr/interfaces | |
parent | 7d3f66eaa0aa48a1e1c289f33b6f0d1fdd29bcd5 (diff) | |
parent | f2a90986919febd6d6a47e044ca7f1842980c5e9 (diff) |
Merge pull request #107 from nyorain/wlr_data_device_manager
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 |