1 /* Generated by wayland-scanner 1.17.0 */ 2 3 /* 4 * Copyright © 2015, 2016 Red Hat 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation 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 11 * Software is furnished to do so, subject to the following conditions: 12 * 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 * 17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 23 * DEALINGS IN THE SOFTWARE. 24 */ 25 26 #include <stdlib.h> 27 #include <stdint.h> 28 #include "wayland-util.h" 29 30 extern const struct wl_interface gtk_primary_selection_device_interface; 31 extern const struct wl_interface gtk_primary_selection_offer_interface; 32 extern const struct wl_interface gtk_primary_selection_source_interface; 33 extern const struct wl_interface wl_seat_interface; 34 35 static const struct wl_interface *types[] = { 36 NULL, 37 NULL, 38 >k_primary_selection_source_interface, 39 >k_primary_selection_device_interface, 40 &wl_seat_interface, 41 >k_primary_selection_source_interface, 42 NULL, 43 >k_primary_selection_offer_interface, 44 >k_primary_selection_offer_interface, 45 }; 46 47 static const struct wl_message gtk_primary_selection_device_manager_requests[] = { 48 { "create_source", "n", types + 2 }, 49 { "get_device", "no", types + 3 }, 50 { "destroy", "", types + 0 }, 51 }; 52 53 WL_EXPORT const struct wl_interface gtk_primary_selection_device_manager_interface = { 54 "gtk_primary_selection_device_manager", 1, 55 3, gtk_primary_selection_device_manager_requests, 56 0, NULL, 57 }; 58 59 static const struct wl_message gtk_primary_selection_device_requests[] = { 60 { "set_selection", "?ou", types + 5 }, 61 { "destroy", "", types + 0 }, 62 }; 63 64 static const struct wl_message gtk_primary_selection_device_events[] = { 65 { "data_offer", "n", types + 7 }, 66 { "selection", "?o", types + 8 }, 67 }; 68 69 WL_EXPORT const struct wl_interface gtk_primary_selection_device_interface = { 70 "gtk_primary_selection_device", 1, 71 2, gtk_primary_selection_device_requests, 72 2, gtk_primary_selection_device_events, 73 }; 74 75 static const struct wl_message gtk_primary_selection_offer_requests[] = { 76 { "receive", "sh", types + 0 }, 77 { "destroy", "", types + 0 }, 78 }; 79 80 static const struct wl_message gtk_primary_selection_offer_events[] = { 81 { "offer", "s", types + 0 }, 82 }; 83 84 WL_EXPORT const struct wl_interface gtk_primary_selection_offer_interface = { 85 "gtk_primary_selection_offer", 1, 86 2, gtk_primary_selection_offer_requests, 87 1, gtk_primary_selection_offer_events, 88 }; 89 90 static const struct wl_message gtk_primary_selection_source_requests[] = { 91 { "offer", "s", types + 0 }, 92 { "destroy", "", types + 0 }, 93 }; 94 95 static const struct wl_message gtk_primary_selection_source_events[] = { 96 { "send", "sh", types + 0 }, 97 { "cancelled", "", types + 0 }, 98 }; 99 100 WL_EXPORT const struct wl_interface gtk_primary_selection_source_interface = { 101 "gtk_primary_selection_source", 1, 102 2, gtk_primary_selection_source_requests, 103 2, gtk_primary_selection_source_events, 104 }; 105 106