Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: third_party/wayland-protocols/protocol/gaming-input-protocol.c

Issue 2350633002: third_party: Switch to zcr prefix for downstream wayland interfaces. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* Generated by wayland-scanner 1.11.0 */ 1 /* Generated by wayland-scanner 1.11.0 */
2 2
3 /* 3 /*
4 * Copyright 2016 The Chromium Authors. 4 * Copyright 2016 The Chromium Authors.
5 * 5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a 6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"), 7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation 8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 * 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 10 * and/or sell copies of the Software, and to permit persons to whom the
(...skipping 10 matching lines...) Expand all
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 * 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 22 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 * DEALINGS IN THE SOFTWARE. 23 * DEALINGS IN THE SOFTWARE.
24 */ 24 */
25 25
26 #include <stdlib.h> 26 #include <stdlib.h>
27 #include <stdint.h> 27 #include <stdint.h>
28 #include "wayland-util.h" 28 #include "wayland-util.h"
29 29
30 extern const struct wl_interface wl_seat_interface; 30 extern const struct wl_interface wl_seat_interface;
31 extern const struct wl_interface zcr_gamepad_v1_interface;
31 extern const struct wl_interface zwp_gamepad_v1_interface; 32 extern const struct wl_interface zwp_gamepad_v1_interface;
32 33
33 static const struct wl_interface *types[] = { 34 static const struct wl_interface *types[] = {
34 NULL, 35 NULL,
35 NULL, 36 NULL,
36 NULL, 37 NULL,
37 NULL, 38 NULL,
39 &zcr_gamepad_v1_interface,
40 &wl_seat_interface,
38 &zwp_gamepad_v1_interface, 41 &zwp_gamepad_v1_interface,
39 &wl_seat_interface, 42 &wl_seat_interface,
40 }; 43 };
41 44
45 static const struct wl_message zcr_gaming_input_v1_requests[] = {
46 { "get_gamepad", "no", types + 4 },
47 };
48
49 WL_EXPORT const struct wl_interface zcr_gaming_input_v1_interface = {
50 "zcr_gaming_input_v1", 1,
51 1, zcr_gaming_input_v1_requests,
52 0, NULL,
53 };
54
55 static const struct wl_message zcr_gamepad_v1_requests[] = {
56 { "destroy", "", types + 0 },
57 };
58
59 static const struct wl_message zcr_gamepad_v1_events[] = {
60 { "state_change", "u", types + 0 },
61 { "axis", "uuf", types + 0 },
62 { "button", "uuuf", types + 0 },
63 { "frame", "u", types + 0 },
64 };
65
66 WL_EXPORT const struct wl_interface zcr_gamepad_v1_interface = {
67 "zcr_gamepad_v1", 1,
68 1, zcr_gamepad_v1_requests,
69 4, zcr_gamepad_v1_events,
70 };
71
42 static const struct wl_message zwp_gaming_input_v1_requests[] = { 72 static const struct wl_message zwp_gaming_input_v1_requests[] = {
43 » { "get_gamepad", "no", types + 4 }, 73 » { "get_gamepad", "no", types + 6 },
44 }; 74 };
45 75
46 WL_EXPORT const struct wl_interface zwp_gaming_input_v1_interface = { 76 WL_EXPORT const struct wl_interface zwp_gaming_input_v1_interface = {
47 "zwp_gaming_input_v1", 1, 77 "zwp_gaming_input_v1", 1,
48 1, zwp_gaming_input_v1_requests, 78 1, zwp_gaming_input_v1_requests,
49 0, NULL, 79 0, NULL,
50 }; 80 };
51 81
52 static const struct wl_message zwp_gamepad_v1_requests[] = { 82 static const struct wl_message zwp_gamepad_v1_requests[] = {
53 { "destroy", "", types + 0 }, 83 { "destroy", "", types + 0 },
54 }; 84 };
55 85
56 static const struct wl_message zwp_gamepad_v1_events[] = { 86 static const struct wl_message zwp_gamepad_v1_events[] = {
57 { "state_change", "u", types + 0 }, 87 { "state_change", "u", types + 0 },
58 { "axis", "uuf", types + 0 }, 88 { "axis", "uuf", types + 0 },
59 { "button", "uuuf", types + 0 }, 89 { "button", "uuuf", types + 0 },
60 { "frame", "u", types + 0 }, 90 { "frame", "u", types + 0 },
61 }; 91 };
62 92
63 WL_EXPORT const struct wl_interface zwp_gamepad_v1_interface = { 93 WL_EXPORT const struct wl_interface zwp_gamepad_v1_interface = {
64 "zwp_gamepad_v1", 1, 94 "zwp_gamepad_v1", 1,
65 1, zwp_gamepad_v1_requests, 95 1, zwp_gamepad_v1_requests,
66 4, zwp_gamepad_v1_events, 96 4, zwp_gamepad_v1_events,
67 }; 97 };
68 98
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698