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

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

Issue 2352563002: third_party: Remove deprecated zwp wayland interfaces. (Closed)
Patch Set: rebase Created 4 years, 2 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 11 matching lines...) Expand all
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 zcr_gamepad_v1_interface;
32 extern const struct wl_interface zwp_gamepad_v1_interface;
33 32
34 static const struct wl_interface *types[] = { 33 static const struct wl_interface *types[] = {
35 NULL, 34 NULL,
36 NULL, 35 NULL,
37 NULL, 36 NULL,
38 NULL, 37 NULL,
39 &zcr_gamepad_v1_interface, 38 &zcr_gamepad_v1_interface,
40 &wl_seat_interface, 39 &wl_seat_interface,
41 &zwp_gamepad_v1_interface,
42 &wl_seat_interface,
43 }; 40 };
44 41
45 static const struct wl_message zcr_gaming_input_v1_requests[] = { 42 static const struct wl_message zcr_gaming_input_v1_requests[] = {
46 { "get_gamepad", "no", types + 4 }, 43 { "get_gamepad", "no", types + 4 },
47 }; 44 };
48 45
49 WL_EXPORT const struct wl_interface zcr_gaming_input_v1_interface = { 46 WL_EXPORT const struct wl_interface zcr_gaming_input_v1_interface = {
50 "zcr_gaming_input_v1", 1, 47 "zcr_gaming_input_v1", 1,
51 1, zcr_gaming_input_v1_requests, 48 1, zcr_gaming_input_v1_requests,
52 0, NULL, 49 0, NULL,
53 }; 50 };
54 51
55 static const struct wl_message zcr_gamepad_v1_requests[] = { 52 static const struct wl_message zcr_gamepad_v1_requests[] = {
56 { "destroy", "", types + 0 }, 53 { "destroy", "", types + 0 },
57 }; 54 };
58 55
59 static const struct wl_message zcr_gamepad_v1_events[] = { 56 static const struct wl_message zcr_gamepad_v1_events[] = {
60 { "state_change", "u", types + 0 }, 57 { "state_change", "u", types + 0 },
61 { "axis", "uuf", types + 0 }, 58 { "axis", "uuf", types + 0 },
62 { "button", "uuuf", types + 0 }, 59 { "button", "uuuf", types + 0 },
63 { "frame", "u", types + 0 }, 60 { "frame", "u", types + 0 },
64 }; 61 };
65 62
66 WL_EXPORT const struct wl_interface zcr_gamepad_v1_interface = { 63 WL_EXPORT const struct wl_interface zcr_gamepad_v1_interface = {
67 "zcr_gamepad_v1", 1, 64 "zcr_gamepad_v1", 1,
68 1, zcr_gamepad_v1_requests, 65 1, zcr_gamepad_v1_requests,
69 4, zcr_gamepad_v1_events, 66 4, zcr_gamepad_v1_events,
70 }; 67 };
71 68
72 static const struct wl_message zwp_gaming_input_v1_requests[] = {
73 { "get_gamepad", "no", types + 6 },
74 };
75
76 WL_EXPORT const struct wl_interface zwp_gaming_input_v1_interface = {
77 "zwp_gaming_input_v1", 1,
78 1, zwp_gaming_input_v1_requests,
79 0, NULL,
80 };
81
82 static const struct wl_message zwp_gamepad_v1_requests[] = {
83 { "destroy", "", types + 0 },
84 };
85
86 static const struct wl_message zwp_gamepad_v1_events[] = {
87 { "state_change", "u", types + 0 },
88 { "axis", "uuf", types + 0 },
89 { "button", "uuuf", types + 0 },
90 { "frame", "u", types + 0 },
91 };
92
93 WL_EXPORT const struct wl_interface zwp_gamepad_v1_interface = {
94 "zwp_gamepad_v1", 1,
95 1, zwp_gamepad_v1_requests,
96 4, zwp_gamepad_v1_events,
97 };
98
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698