1 /* Generated by wayland-scanner 1.18.0 */ 2 3 /* 4 * Copyright (C) 2015 Martin Gräßlin 5 * 6 * This program is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU Lesser General Public License as published by 8 * the Free Software Foundation, either version 2.1 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public License 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #include <stdlib.h> 21 #include <stdint.h> 22 #include "wayland-util.h" 23 24 #ifndef __has_attribute 25 # define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */ 26 #endif 27 28 #if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4) 29 #define WL_PRIVATE __attribute__ ((visibility("hidden"))) 30 #else 31 #define WL_PRIVATE 32 #endif 33 34 extern const struct wl_interface org_kde_kwin_idle_timeout_interface; 35 extern const struct wl_interface wl_seat_interface; 36 37 static const struct wl_interface *idle_types[] = { 38 &org_kde_kwin_idle_timeout_interface, 39 &wl_seat_interface, 40 NULL, 41 }; 42 43 static const struct wl_message org_kde_kwin_idle_requests[] = { 44 { "get_idle_timeout", "nou", idle_types + 0 }, 45 }; 46 47 WL_PRIVATE const struct wl_interface org_kde_kwin_idle_interface = { 48 "org_kde_kwin_idle", 1, 49 1, org_kde_kwin_idle_requests, 50 0, NULL, 51 }; 52 53 static const struct wl_message org_kde_kwin_idle_timeout_requests[] = { 54 { "release", "", idle_types + 0 }, 55 { "simulate_user_activity", "", idle_types + 0 }, 56 }; 57 58 static const struct wl_message org_kde_kwin_idle_timeout_events[] = { 59 { "idle", "", idle_types + 0 }, 60 { "resumed", "", idle_types + 0 }, 61 }; 62 63 WL_PRIVATE const struct wl_interface org_kde_kwin_idle_timeout_interface = { 64 "org_kde_kwin_idle_timeout", 1, 65 2, org_kde_kwin_idle_timeout_requests, 66 2, org_kde_kwin_idle_timeout_events, 67 }; 68 69