| OLD | NEW |
| (Empty) |
| 1 /* Generated by wayland-scanner 1.11.0 */ | |
| 2 | |
| 3 /* | |
| 4 * Copyright © 2008-2013 Kristian Høgsberg | |
| 5 * Copyright © 2013 Rafael Antognolli | |
| 6 * Copyright © 2013 Jasper St. Pierre | |
| 7 * Copyright © 2010-2013 Intel Corporation | |
| 8 * | |
| 9 * Permission is hereby granted, free of charge, to any person obtaining a | |
| 10 * copy of this software and associated documentation files (the "Software"), | |
| 11 * to deal in the Software without restriction, including without limitation | |
| 12 * the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
| 13 * and/or sell copies of the Software, and to permit persons to whom the | |
| 14 * Software is furnished to do so, subject to the following conditions: | |
| 15 * | |
| 16 * The above copyright notice and this permission notice (including the next | |
| 17 * paragraph) shall be included in all copies or substantial portions of the | |
| 18 * Software. | |
| 19 * | |
| 20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 21 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 22 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
| 23 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 24 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
| 25 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | |
| 26 * DEALINGS IN THE SOFTWARE. | |
| 27 */ | |
| 28 | |
| 29 #include <stdlib.h> | |
| 30 #include <stdint.h> | |
| 31 #include "wayland-util.h" | |
| 32 | |
| 33 extern const struct wl_interface wl_output_interface; | |
| 34 extern const struct wl_interface wl_seat_interface; | |
| 35 extern const struct wl_interface wl_surface_interface; | |
| 36 extern const struct wl_interface xdg_popup_interface; | |
| 37 extern const struct wl_interface xdg_surface_interface; | |
| 38 | |
| 39 static const struct wl_interface *types[] = { | |
| 40 NULL, | |
| 41 NULL, | |
| 42 NULL, | |
| 43 NULL, | |
| 44 &xdg_surface_interface, | |
| 45 &wl_surface_interface, | |
| 46 &xdg_popup_interface, | |
| 47 &wl_surface_interface, | |
| 48 &wl_surface_interface, | |
| 49 &wl_seat_interface, | |
| 50 NULL, | |
| 51 NULL, | |
| 52 NULL, | |
| 53 &xdg_surface_interface, | |
| 54 &wl_seat_interface, | |
| 55 NULL, | |
| 56 NULL, | |
| 57 NULL, | |
| 58 &wl_seat_interface, | |
| 59 NULL, | |
| 60 &wl_seat_interface, | |
| 61 NULL, | |
| 62 NULL, | |
| 63 &wl_output_interface, | |
| 64 }; | |
| 65 | |
| 66 static const struct wl_message xdg_shell_requests[] = { | |
| 67 { "destroy", "", types + 0 }, | |
| 68 { "use_unstable_version", "i", types + 0 }, | |
| 69 { "get_xdg_surface", "no", types + 4 }, | |
| 70 { "get_xdg_popup", "nooouii", types + 6 }, | |
| 71 { "pong", "u", types + 0 }, | |
| 72 }; | |
| 73 | |
| 74 static const struct wl_message xdg_shell_events[] = { | |
| 75 { "ping", "u", types + 0 }, | |
| 76 }; | |
| 77 | |
| 78 WL_EXPORT const struct wl_interface xdg_shell_interface = { | |
| 79 "xdg_shell", 1, | |
| 80 5, xdg_shell_requests, | |
| 81 1, xdg_shell_events, | |
| 82 }; | |
| 83 | |
| 84 static const struct wl_message xdg_surface_requests[] = { | |
| 85 { "destroy", "", types + 0 }, | |
| 86 { "set_parent", "?o", types + 13 }, | |
| 87 { "set_title", "s", types + 0 }, | |
| 88 { "set_app_id", "s", types + 0 }, | |
| 89 { "show_window_menu", "ouii", types + 14 }, | |
| 90 { "move", "ou", types + 18 }, | |
| 91 { "resize", "ouu", types + 20 }, | |
| 92 { "ack_configure", "u", types + 0 }, | |
| 93 { "set_window_geometry", "iiii", types + 0 }, | |
| 94 { "set_maximized", "", types + 0 }, | |
| 95 { "unset_maximized", "", types + 0 }, | |
| 96 { "set_fullscreen", "?o", types + 23 }, | |
| 97 { "unset_fullscreen", "", types + 0 }, | |
| 98 { "set_minimized", "", types + 0 }, | |
| 99 }; | |
| 100 | |
| 101 static const struct wl_message xdg_surface_events[] = { | |
| 102 { "configure", "iiau", types + 0 }, | |
| 103 { "close", "", types + 0 }, | |
| 104 }; | |
| 105 | |
| 106 WL_EXPORT const struct wl_interface xdg_surface_interface = { | |
| 107 "xdg_surface", 1, | |
| 108 14, xdg_surface_requests, | |
| 109 2, xdg_surface_events, | |
| 110 }; | |
| 111 | |
| 112 static const struct wl_message xdg_popup_requests[] = { | |
| 113 { "destroy", "", types + 0 }, | |
| 114 }; | |
| 115 | |
| 116 static const struct wl_message xdg_popup_events[] = { | |
| 117 { "popup_done", "", types + 0 }, | |
| 118 }; | |
| 119 | |
| 120 WL_EXPORT const struct wl_interface xdg_popup_interface = { | |
| 121 "xdg_popup", 1, | |
| 122 1, xdg_popup_requests, | |
| 123 1, xdg_popup_events, | |
| 124 }; | |
| 125 | |
| OLD | NEW |