1 | /* Generated by wayland-scanner 1.20.0 */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * Copyright © 2018 Simon Ser
|
---|
5 | * Copyright © 2019 Ivan Molodetskikh
|
---|
6 | *
|
---|
7 | * Permission to use, copy, modify, distribute, and sell this
|
---|
8 | * software and its documentation for any purpose is hereby granted
|
---|
9 | * without fee, provided that the above copyright notice appear in
|
---|
10 | * all copies and that both that copyright notice and this permission
|
---|
11 | * notice appear in supporting documentation, and that the name of
|
---|
12 | * the copyright holders not be used in advertising or publicity
|
---|
13 | * pertaining to distribution of the software without specific,
|
---|
14 | * written prior permission. The copyright holders make no
|
---|
15 | * representations about the suitability of this software for any
|
---|
16 | * purpose. It is provided "as is" without express or implied
|
---|
17 | * warranty.
|
---|
18 | *
|
---|
19 | * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
|
---|
20 | * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
---|
21 | * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
---|
22 | * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
---|
23 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
---|
24 | * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
---|
25 | * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
---|
26 | * THIS SOFTWARE.
|
---|
27 | */
|
---|
28 |
|
---|
29 | /* wayland-scanner --include-core-only --strict public-code ./wlr-data-control-unstable-v1.xml wlr-data-control-unstable-v1.c */
|
---|
30 |
|
---|
31 | #include <stdlib.h>
|
---|
32 | #include <stdint.h>
|
---|
33 | #include "wayland-util.h"
|
---|
34 |
|
---|
35 | extern const struct wl_interface wl_seat_interface;
|
---|
36 | extern const struct wl_interface zwlr_data_control_device_v1_interface;
|
---|
37 | extern const struct wl_interface zwlr_data_control_offer_v1_interface;
|
---|
38 | extern const struct wl_interface zwlr_data_control_source_v1_interface;
|
---|
39 |
|
---|
40 | static const struct wl_interface *wlr_data_control_unstable_v1_types[] = {
|
---|
41 | NULL,
|
---|
42 | NULL,
|
---|
43 | &zwlr_data_control_source_v1_interface,
|
---|
44 | &zwlr_data_control_device_v1_interface,
|
---|
45 | &wl_seat_interface,
|
---|
46 | &zwlr_data_control_source_v1_interface,
|
---|
47 | &zwlr_data_control_source_v1_interface,
|
---|
48 | &zwlr_data_control_offer_v1_interface,
|
---|
49 | &zwlr_data_control_offer_v1_interface,
|
---|
50 | &zwlr_data_control_offer_v1_interface,
|
---|
51 | };
|
---|
52 |
|
---|
53 | static const struct wl_message zwlr_data_control_manager_v1_requests[] = {
|
---|
54 | { "create_data_source", "n", wlr_data_control_unstable_v1_types + 2 },
|
---|
55 | { "get_data_device", "no", wlr_data_control_unstable_v1_types + 3 },
|
---|
56 | { "destroy", "", wlr_data_control_unstable_v1_types + 0 },
|
---|
57 | };
|
---|
58 |
|
---|
59 | WL_EXPORT const struct wl_interface zwlr_data_control_manager_v1_interface = {
|
---|
60 | "zwlr_data_control_manager_v1", 2,
|
---|
61 | 3, zwlr_data_control_manager_v1_requests,
|
---|
62 | 0, NULL,
|
---|
63 | };
|
---|
64 |
|
---|
65 | static const struct wl_message zwlr_data_control_device_v1_requests[] = {
|
---|
66 | { "set_selection", "?o", wlr_data_control_unstable_v1_types + 5 },
|
---|
67 | { "destroy", "", wlr_data_control_unstable_v1_types + 0 },
|
---|
68 | { "set_primary_selection", "2?o", wlr_data_control_unstable_v1_types + 6 },
|
---|
69 | };
|
---|
70 |
|
---|
71 | static const struct wl_message zwlr_data_control_device_v1_events[] = {
|
---|
72 | { "data_offer", "n", wlr_data_control_unstable_v1_types + 7 },
|
---|
73 | { "selection", "?o", wlr_data_control_unstable_v1_types + 8 },
|
---|
74 | { "finished", "", wlr_data_control_unstable_v1_types + 0 },
|
---|
75 | { "primary_selection", "2?o", wlr_data_control_unstable_v1_types + 9 },
|
---|
76 | };
|
---|
77 |
|
---|
78 | WL_EXPORT const struct wl_interface zwlr_data_control_device_v1_interface = {
|
---|
79 | "zwlr_data_control_device_v1", 2,
|
---|
80 | 3, zwlr_data_control_device_v1_requests,
|
---|
81 | 4, zwlr_data_control_device_v1_events,
|
---|
82 | };
|
---|
83 |
|
---|
84 | static const struct wl_message zwlr_data_control_source_v1_requests[] = {
|
---|
85 | { "offer", "s", wlr_data_control_unstable_v1_types + 0 },
|
---|
86 | { "destroy", "", wlr_data_control_unstable_v1_types + 0 },
|
---|
87 | };
|
---|
88 |
|
---|
89 | static const struct wl_message zwlr_data_control_source_v1_events[] = {
|
---|
90 | { "send", "sh", wlr_data_control_unstable_v1_types + 0 },
|
---|
91 | { "cancelled", "", wlr_data_control_unstable_v1_types + 0 },
|
---|
92 | };
|
---|
93 |
|
---|
94 | WL_EXPORT const struct wl_interface zwlr_data_control_source_v1_interface = {
|
---|
95 | "zwlr_data_control_source_v1", 1,
|
---|
96 | 2, zwlr_data_control_source_v1_requests,
|
---|
97 | 2, zwlr_data_control_source_v1_events,
|
---|
98 | };
|
---|
99 |
|
---|
100 | static const struct wl_message zwlr_data_control_offer_v1_requests[] = {
|
---|
101 | { "receive", "sh", wlr_data_control_unstable_v1_types + 0 },
|
---|
102 | { "destroy", "", wlr_data_control_unstable_v1_types + 0 },
|
---|
103 | };
|
---|
104 |
|
---|
105 | static const struct wl_message zwlr_data_control_offer_v1_events[] = {
|
---|
106 | { "offer", "s", wlr_data_control_unstable_v1_types + 0 },
|
---|
107 | };
|
---|
108 |
|
---|
109 | WL_EXPORT const struct wl_interface zwlr_data_control_offer_v1_interface = {
|
---|
110 | "zwlr_data_control_offer_v1", 1,
|
---|
111 | 2, zwlr_data_control_offer_v1_requests,
|
---|
112 | 1, zwlr_data_control_offer_v1_events,
|
---|
113 | };
|
---|
114 |
|
---|