Chromium Code Reviews| Index: third_party/wayland-protocols/protocol/gaming-input-protocol.c |
| diff --git a/third_party/wayland-protocols/protocol/alpha-compositing-protocol.c b/third_party/wayland-protocols/protocol/gaming-input-protocol.c |
| similarity index 61% |
| copy from third_party/wayland-protocols/protocol/alpha-compositing-protocol.c |
| copy to third_party/wayland-protocols/protocol/gaming-input-protocol.c |
| index 29fd4d9198f4e074cae6605cea64764f764c9124..beaddbda9840506d97e1a8088c19de8aafe91be0 100644 |
| --- a/third_party/wayland-protocols/protocol/alpha-compositing-protocol.c |
| +++ b/third_party/wayland-protocols/protocol/gaming-input-protocol.c |
| @@ -1,19 +1,17 @@ |
| -/* Generated by wayland-scanner 1.11.0 */ |
| - |
| -/* |
| +/* |
|
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.
|
| * Copyright 2016 The Chromium Authors. |
| - * |
| + * |
| * Permission is hereby granted, free of charge, to any person obtaining a |
| * copy of this software and associated documentation files (the "Software"), |
| * to deal in the Software without restriction, including without limitation |
| * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| * and/or sell copies of the Software, and to permit persons to whom the |
| * Software is furnished to do so, subject to the following conditions: |
| - * |
| + * |
| * The above copyright notice and this permission notice (including the next |
| * paragraph) shall be included in all copies or substantial portions of the |
| * Software. |
| - * |
| + * |
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| @@ -27,35 +25,42 @@ |
| #include <stdint.h> |
| #include "wayland-util.h" |
| -extern const struct wl_interface wl_surface_interface; |
| -extern const struct wl_interface zwp_blending_v1_interface; |
| +extern const struct wl_interface zwp_gamepad_v1_interface; |
| +extern const struct wl_interface wl_seat_interface; |
| static const struct wl_interface *types[] = { |
| NULL, |
| - &zwp_blending_v1_interface, |
| - &wl_surface_interface, |
| + NULL, |
| + NULL, |
| + NULL, |
| + &zwp_gamepad_v1_interface, |
| + &wl_seat_interface, |
| }; |
| -static const struct wl_message zwp_alpha_compositing_v1_requests[] = { |
| - { "destroy", "", types + 0 }, |
| - { "get_blending", "no", types + 1 }, |
| +static const struct wl_message zwp_gaming_input_v1_requests[] = { |
| + { "get_gamepad", "no", types + 4 }, |
| }; |
| -WL_EXPORT const struct wl_interface zwp_alpha_compositing_v1_interface = { |
| - "zwp_alpha_compositing_v1", 1, |
| - 2, zwp_alpha_compositing_v1_requests, |
| +WL_EXPORT const struct wl_interface zwp_gaming_input_v1_interface = { |
| + "zwp_gaming_input_v1", 1, |
| + 1, zwp_gaming_input_v1_requests, |
| 0, NULL, |
| }; |
| -static const struct wl_message zwp_blending_v1_requests[] = { |
| +static const struct wl_message zwp_gamepad_v1_requests[] = { |
| { "destroy", "", types + 0 }, |
| - { "set_blending", "u", types + 0 }, |
| - { "set_alpha", "f", types + 0 }, |
| }; |
| -WL_EXPORT const struct wl_interface zwp_blending_v1_interface = { |
| - "zwp_blending_v1", 1, |
| - 3, zwp_blending_v1_requests, |
| - 0, NULL, |
| +static const struct wl_message zwp_gamepad_v1_events[] = { |
| + { "state_change", "u", types + 0 }, |
| + { "axis", "uuf", types + 0 }, |
| + { "button", "uuuf", types + 0 }, |
| + { "frame", "u", types + 0 }, |
| +}; |
| + |
| +WL_EXPORT const struct wl_interface zwp_gamepad_v1_interface = { |
| + "zwp_gamepad_v1", 1, |
| + 1, zwp_gamepad_v1_requests, |
| + 4, zwp_gamepad_v1_events, |
| }; |