diff options
| author | Kristian Høgsberg <krh@bitplanet.net> | 2012-06-03 17:30:12 -0400 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-06-03 17:30:12 -0400 |
| commit | 68f058ffd3aa485e01354b8cf6ad040169e939fb (patch) | |
| tree | 9dc567a7ca7c4166013c286176fa77a59ca5e1df /src/wayland-server.h | |
| parent | Add wl_keyboard::keymap event (diff) | |
| download | wayland-68f058ffd3aa485e01354b8cf6ad040169e939fb.tar wayland-68f058ffd3aa485e01354b8cf6ad040169e939fb.tar.gz wayland-68f058ffd3aa485e01354b8cf6ad040169e939fb.tar.bz2 wayland-68f058ffd3aa485e01354b8cf6ad040169e939fb.tar.lz wayland-68f058ffd3aa485e01354b8cf6ad040169e939fb.tar.xz wayland-68f058ffd3aa485e01354b8cf6ad040169e939fb.tar.zst wayland-68f058ffd3aa485e01354b8cf6ad040169e939fb.zip | |
data-device: Don't implement data source through data offer object
The wl_data_source object used to specify the implementation for data
offers created for it. This means you need a data offer to retrieve the
data from the source, which makes it awkward to use in-process in a
compositor. Now we instead have three virtual functions that can be
connected to a protocol object or in-process data-sources such as an
X server proxy or clipboard.
Diffstat (limited to 'src/wayland-server.h')
| -rw-r--r-- | src/wayland-server.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wayland-server.h b/src/wayland-server.h index 266b457..fc38cd1 100644 --- a/src/wayland-server.h +++ b/src/wayland-server.h @@ -232,7 +232,10 @@ struct wl_data_source { struct wl_resource resource; struct wl_array mime_types; - const struct wl_data_offer_interface *offer_interface; + void (*accept)(struct wl_data_source *source, + uint32_t serial, const char *mime_type); + void (*send)(struct wl_data_source *source, + const char *mime_type, int32_t fd); void (*cancel)(struct wl_data_source *source); }; |
