OLD | NEW |
1 /* Generated by wayland-scanner 1.11.0 */ | 1 /* |
2 | |
3 /* | |
4 * Copyright 2016 The Chromium Authors. | 2 * Copyright 2016 The Chromium Authors. |
5 * | 3 * |
6 * Permission is hereby granted, free of charge, to any person obtaining a | 4 * Permission is hereby granted, free of charge, to any person obtaining a |
7 * copy of this software and associated documentation files (the "Software"), | 5 * copy of this software and associated documentation files (the "Software"), |
8 * to deal in the Software without restriction, including without limitation | 6 * to deal in the Software without restriction, including without limitation |
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, | 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
10 * and/or sell copies of the Software, and to permit persons to whom the | 8 * and/or sell copies of the Software, and to permit persons to whom the |
11 * Software is furnished to do so, subject to the following conditions: | 9 * Software is furnished to do so, subject to the following conditions: |
12 * | 10 * |
13 * The above copyright notice and this permission notice (including the next | 11 * The above copyright notice and this permission notice (including the next |
14 * paragraph) shall be included in all copies or substantial portions of the | 12 * paragraph) shall be included in all copies or substantial portions of the |
15 * Software. | 13 * Software. |
16 * | 14 * |
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | 17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
20 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | 19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
22 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 * DEALINGS IN THE SOFTWARE. | 21 * DEALINGS IN THE SOFTWARE. |
24 */ | 22 */ |
25 | 23 |
26 #include <stdlib.h> | 24 #include <stdlib.h> |
27 #include <stdint.h> | 25 #include <stdint.h> |
28 #include "wayland-util.h" | 26 #include "wayland-util.h" |
29 | 27 |
30 extern const struct wl_interface wl_surface_interface; | |
31 extern const struct wl_interface zwp_security_v1_interface; | |
32 | 28 |
33 static const struct wl_interface *types[] = { | 29 static const struct wl_interface *types[] = { |
34 » &zwp_security_v1_interface, | 30 » NULL, |
35 » &wl_surface_interface, | 31 » NULL, |
| 32 » NULL, |
| 33 » NULL, |
36 }; | 34 }; |
37 | 35 |
38 static const struct wl_message zwp_secure_output_v1_requests[] = { | 36 static const struct wl_message zwp_gamepads_v1_requests[] = { |
39 { "destroy", "", types + 0 }, | 37 { "destroy", "", types + 0 }, |
40 { "get_security", "no", types + 0 }, | |
41 }; | 38 }; |
42 | 39 |
43 WL_EXPORT const struct wl_interface zwp_secure_output_v1_interface = { | 40 static const struct wl_message zwp_gamepads_v1_events[] = { |
44 » "zwp_secure_output_v1", 1, | 41 » { "connected", "i", types + 0 }, |
45 » 2, zwp_secure_output_v1_requests, | 42 » { "disconnected", "i", types + 0 }, |
46 » 0, NULL, | 43 » { "axis", "iif", types + 0 }, |
| 44 » { "button", "iiif", types + 0 }, |
| 45 » { "frame", "u", types + 0 }, |
47 }; | 46 }; |
48 | 47 |
49 static const struct wl_message zwp_security_v1_requests[] = { | 48 WL_EXPORT const struct wl_interface zwp_gamepads_v1_interface = { |
50 » { "destroy", "", types + 0 }, | 49 » "zwp_gamepads_v1", 1, |
51 » { "only_visible_on_secure_output", "", types + 0 }, | 50 » 1, zwp_gamepads_v1_requests, |
| 51 » 5, zwp_gamepads_v1_events, |
52 }; | 52 }; |
53 | 53 |
54 WL_EXPORT const struct wl_interface zwp_security_v1_interface = { | |
55 "zwp_security_v1", 1, | |
56 2, zwp_security_v1_requests, | |
57 0, NULL, | |
58 }; | |
59 | |
OLD | NEW |