mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Implement wlr_data_{source,device,device_manager}
This commit is contained in:
parent
e5fd858394
commit
86314caa5b
8 changed files with 398 additions and 0 deletions
15
include/wlr/interfaces/wlr_data_source.h
Normal file
15
include/wlr/interfaces/wlr_data_source.h
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue