OLD | NEW |
---|---|
1 /* Generated by wayland-scanner 1.11.0 */ | 1 /* |
reveman
2016/07/13 10:11:03
nit: please use wayland-scanner 1.11.0 to generate
denniskempin
2016/07/13 15:48:22
Done.
| |
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; | 28 extern const struct wl_interface zwp_gamepad_v1_interface; |
31 extern const struct wl_interface zwp_blending_v1_interface; | 29 extern const struct wl_interface wl_seat_interface; |
32 | 30 |
33 static const struct wl_interface *types[] = { | 31 static const struct wl_interface *types[] = { |
34 NULL, | 32 NULL, |
35 » &zwp_blending_v1_interface, | 33 » NULL, |
36 » &wl_surface_interface, | 34 » NULL, |
35 » NULL, | |
36 » &zwp_gamepad_v1_interface, | |
37 » &wl_seat_interface, | |
37 }; | 38 }; |
38 | 39 |
39 static const struct wl_message zwp_alpha_compositing_v1_requests[] = { | 40 static const struct wl_message zwp_gaming_input_v1_requests[] = { |
40 » { "destroy", "", types + 0 }, | 41 » { "get_gamepad", "no", types + 4 }, |
41 » { "get_blending", "no", types + 1 }, | |
42 }; | 42 }; |
43 | 43 |
44 WL_EXPORT const struct wl_interface zwp_alpha_compositing_v1_interface = { | 44 WL_EXPORT const struct wl_interface zwp_gaming_input_v1_interface = { |
45 » "zwp_alpha_compositing_v1", 1, | 45 » "zwp_gaming_input_v1", 1, |
46 » 2, zwp_alpha_compositing_v1_requests, | 46 » 1, zwp_gaming_input_v1_requests, |
47 0, NULL, | 47 0, NULL, |
48 }; | 48 }; |
49 | 49 |
50 static const struct wl_message zwp_blending_v1_requests[] = { | 50 static const struct wl_message zwp_gamepad_v1_requests[] = { |
51 { "destroy", "", types + 0 }, | 51 { "destroy", "", types + 0 }, |
52 { "set_blending", "u", types + 0 }, | |
53 { "set_alpha", "f", types + 0 }, | |
54 }; | 52 }; |
55 | 53 |
56 WL_EXPORT const struct wl_interface zwp_blending_v1_interface = { | 54 static const struct wl_message zwp_gamepad_v1_events[] = { |
57 » "zwp_blending_v1", 1, | 55 » { "state_change", "u", types + 0 }, |
58 » 3, zwp_blending_v1_requests, | 56 » { "axis", "uuf", types + 0 }, |
59 » 0, NULL, | 57 » { "button", "uuuf", types + 0 }, |
58 » { "frame", "u", types + 0 }, | |
60 }; | 59 }; |
61 | 60 |
61 WL_EXPORT const struct wl_interface zwp_gamepad_v1_interface = { | |
62 "zwp_gamepad_v1", 1, | |
63 1, zwp_gamepad_v1_requests, | |
64 4, zwp_gamepad_v1_events, | |
65 }; | |
66 | |
OLD | NEW |