| 1 | /* Generated by wayland-scanner 1.24.0 */ |
| 2 | |
| 3 | /* |
| 4 | * Copyright 2018 The Chromium Authors |
| 5 | * Copyright 2023 Simon Ser |
| 6 | * |
| 7 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 8 | * copy of this software and associated documentation files (the "Software"), |
| 9 | * to deal in the Software without restriction, including without limitation |
| 10 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 11 | * and/or sell copies of the Software, and to permit persons to whom the |
| 12 | * Software is furnished to do so, subject to the following conditions: |
| 13 | * The above copyright notice and this permission notice (including the next |
| 14 | * paragraph) shall be included in all copies or substantial portions of the |
| 15 | * Software. |
| 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 19 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 21 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 22 | * DEALINGS IN THE SOFTWARE. |
| 23 | */ |
| 24 | |
| 25 | #include <stdbool.h> |
| 26 | #include <stdlib.h> |
| 27 | #include <stdint.h> |
| 28 | #include "wayland-util.h" |
| 29 | |
| 30 | #ifndef __has_attribute |
| 31 | # define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */ |
| 32 | #endif |
| 33 | |
| 34 | #if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4) |
| 35 | #define WL_PRIVATE __attribute__ ((visibility("hidden"))) |
| 36 | #else |
| 37 | #define WL_PRIVATE |
| 38 | #endif |
| 39 | |
| 40 | extern const struct wl_interface wl_pointer_interface; |
| 41 | extern const struct wl_interface wp_cursor_shape_device_v1_interface; |
| 42 | extern const struct wl_interface zwp_tablet_tool_v2_interface; |
| 43 | |
| 44 | static const struct wl_interface *cursor_shape_v1_types[] = { |
| 45 | NULL, |
| 46 | NULL, |
| 47 | &wp_cursor_shape_device_v1_interface, |
| 48 | &wl_pointer_interface, |
| 49 | &wp_cursor_shape_device_v1_interface, |
| 50 | &zwp_tablet_tool_v2_interface, |
| 51 | }; |
| 52 | |
| 53 | static const struct wl_message wp_cursor_shape_manager_v1_requests[] = { |
| 54 | { "destroy", "", cursor_shape_v1_types + 0 }, |
| 55 | { "get_pointer", "no", cursor_shape_v1_types + 2 }, |
| 56 | { "get_tablet_tool_v2", "no", cursor_shape_v1_types + 4 }, |
| 57 | }; |
| 58 | |
| 59 | WL_PRIVATE const struct wl_interface wp_cursor_shape_manager_v1_interface = { |
| 60 | "wp_cursor_shape_manager_v1", 2, |
| 61 | 3, wp_cursor_shape_manager_v1_requests, |
| 62 | 0, NULL, |
| 63 | }; |
| 64 | |
| 65 | static const struct wl_message wp_cursor_shape_device_v1_requests[] = { |
| 66 | { "destroy", "", cursor_shape_v1_types + 0 }, |
| 67 | { "set_shape", "uu", cursor_shape_v1_types + 0 }, |
| 68 | }; |
| 69 | |
| 70 | WL_PRIVATE const struct wl_interface wp_cursor_shape_device_v1_interface = { |
| 71 | "wp_cursor_shape_device_v1", 2, |
| 72 | 2, wp_cursor_shape_device_v1_requests, |
| 73 | 0, NULL, |
| 74 | }; |
| 75 | |
| 76 | |