| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright © 2013-2014 Collabora, Ltd. | |
| 3 * | |
| 4 * Permission is hereby granted, free of charge, to any person obtaining a | |
| 5 * copy of this software and associated documentation files (the "Software"), | |
| 6 * to deal in the Software without restriction, including without limitation | |
| 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
| 8 * and/or sell copies of the Software, and to permit persons to whom the | |
| 9 * Software is furnished to do so, subject to the following conditions: | |
| 10 * | |
| 11 * The above copyright notice and this permission notice (including the next | |
| 12 * paragraph) shall be included in all copies or substantial portions of the | |
| 13 * Software. | |
| 14 * | |
| 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
| 18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
| 20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | |
| 21 * DEALINGS IN THE SOFTWARE. | |
| 22 */ | |
| 23 | |
| 24 #include <stdlib.h> | |
| 25 #include <stdint.h> | |
| 26 #include "wayland-util.h" | |
| 27 | |
| 28 extern const struct wl_interface wl_surface_interface; | |
| 29 extern const struct wl_interface wl_viewport_interface; | |
| 30 | |
| 31 static const struct wl_interface *types[] = { | |
| 32 NULL, | |
| 33 NULL, | |
| 34 NULL, | |
| 35 NULL, | |
| 36 NULL, | |
| 37 NULL, | |
| 38 &wl_viewport_interface, | |
| 39 &wl_surface_interface, | |
| 40 }; | |
| 41 | |
| 42 static const struct wl_message wl_scaler_requests[] = { | |
| 43 { "destroy", "", types + 0 }, | |
| 44 { "get_viewport", "no", types + 6 }, | |
| 45 }; | |
| 46 | |
| 47 WL_EXPORT const struct wl_interface wl_scaler_interface = { | |
| 48 "wl_scaler", 2, | |
| 49 2, wl_scaler_requests, | |
| 50 0, NULL, | |
| 51 }; | |
| 52 | |
| 53 static const struct wl_message wl_viewport_requests[] = { | |
| 54 { "destroy", "", types + 0 }, | |
| 55 { "set", "ffffii", types + 0 }, | |
| 56 { "set_source", "2ffff", types + 0 }, | |
| 57 { "set_destination", "2ii", types + 0 }, | |
| 58 }; | |
| 59 | |
| 60 WL_EXPORT const struct wl_interface wl_viewport_interface = { | |
| 61 "wl_viewport", 2, | |
| 62 4, wl_viewport_requests, | |
| 63 0, NULL, | |
| 64 }; | |
| 65 | |
| OLD | NEW |