1 /* Generated by wayland-scanner 1.14.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 <gtk/gtk.h> 29 #include <gdk/gdkwayland.h> 30 #include "wayland-util.h" 31 32 extern const struct wl_interface gtk_primary_selection_device_interface; 33 extern const struct wl_interface gtk_primary_selection_offer_interface; 34 extern const struct wl_interface gtk_primary_selection_source_interface; 35 36 static const struct wl_interface *types[] = { 37 NULL, 38 NULL, 39 >k_primary_selection_source_interface, 40 >k_primary_selection_device_interface, 41 &wl_seat_interface, 42 >k_primary_selection_source_interface, 43 NULL, 44 >k_primary_selection_offer_interface, 45 >k_primary_selection_offer_interface, 46 }; 47 48 static const struct wl_message gtk_primary_selection_device_manager_requests[] = { 49 { "create_source", "n", types + 2 }, 50 { "get_device", "no", types + 3 }, 51 { "destroy", "", types + 0 }, 52 }; 53 54 const struct wl_interface gtk_primary_selection_device_manager_interface = { 55 "gtk_primary_selection_device_manager", 1, 56 3, gtk_primary_selection_device_manager_requests, 57 0, NULL, 58 }; 59 60 static const struct wl_message gtk_primary_selection_device_requests[] = { 61 { "set_selection", "?ou", types + 5 }, 62 { "destroy", "", types + 0 }, 63 }; 64 65 static const struct wl_message gtk_primary_selection_device_events[] = { 66 { "data_offer", "n", types + 7 }, 67 { "selection", "?o", types + 8 }, 68 }; 69 70 const struct wl_interface gtk_primary_selection_device_interface = { 71 "gtk_primary_selection_device", 1, 72 2, gtk_primary_selection_device_requests, 73 2, gtk_primary_selection_device_events, 74 }; 75 76 static const struct wl_message gtk_primary_selection_offer_requests[] = { 77 { "receive", "sh", types + 0 }, 78 { "destroy", "", types + 0 }, 79 }; 80 81 static const struct wl_message gtk_primary_selection_offer_events[] = { 82 { "offer", "s", types + 0 }, 83 }; 84 85 const struct wl_interface gtk_primary_selection_offer_interface = { 86 "gtk_primary_selection_offer", 1, 87 2, gtk_primary_selection_offer_requests, 88 1, gtk_primary_selection_offer_events, 89 }; 90 91 static const struct wl_message gtk_primary_selection_source_requests[] = { 92 { "offer", "s", types + 0 }, 93 { "destroy", "", types + 0 }, 94 }; 95 96 static const struct wl_message gtk_primary_selection_source_events[] = { 97 { "send", "sh", types + 0 }, 98 { "cancelled", "", types + 0 }, 99 }; 100 101 const struct wl_interface gtk_primary_selection_source_interface = { 102 "gtk_primary_selection_source", 1, 103 2, gtk_primary_selection_source_requests, 104 2, gtk_primary_selection_source_events, 105 }; 106