3 #ifndef IDLE_INHIBIT_UNSTABLE_V1_CLIENT_PROTOCOL_H
4 #define IDLE_INHIBIT_UNSTABLE_V1_CLIENT_PROTOCOL_H
8 #include "wayland-client.h"
45 struct zwp_idle_inhibit_manager_v1;
46 struct zwp_idle_inhibitor_v1;
121 #define ZWP_IDLE_INHIBIT_MANAGER_V1_DESTROY 0
122 #define ZWP_IDLE_INHIBIT_MANAGER_V1_CREATE_INHIBITOR 1
128 #define ZWP_IDLE_INHIBIT_MANAGER_V1_DESTROY_SINCE_VERSION 1
132 #define ZWP_IDLE_INHIBIT_MANAGER_V1_CREATE_INHIBITOR_SINCE_VERSION 1
138 wl_proxy_set_user_data((
struct wl_proxy *) zwp_idle_inhibit_manager_v1, user_data);
145 return wl_proxy_get_user_data((
struct wl_proxy *) zwp_idle_inhibit_manager_v1);
148 static inline uint32_t
151 return wl_proxy_get_version((
struct wl_proxy *) zwp_idle_inhibit_manager_v1);
162 wl_proxy_marshal((
struct wl_proxy *) zwp_idle_inhibit_manager_v1,
165 wl_proxy_destroy((
struct wl_proxy *) zwp_idle_inhibit_manager_v1);
173 static inline struct zwp_idle_inhibitor_v1 *
178 id = wl_proxy_marshal_constructor((
struct wl_proxy *) zwp_idle_inhibit_manager_v1,
181 return (
struct zwp_idle_inhibitor_v1 *) id;
184 #define ZWP_IDLE_INHIBITOR_V1_DESTROY 0
190 #define ZWP_IDLE_INHIBITOR_V1_DESTROY_SINCE_VERSION 1
196 wl_proxy_set_user_data((
struct wl_proxy *) zwp_idle_inhibitor_v1, user_data);
203 return wl_proxy_get_user_data((
struct wl_proxy *) zwp_idle_inhibitor_v1);
206 static inline uint32_t
209 return wl_proxy_get_version((
struct wl_proxy *) zwp_idle_inhibitor_v1);
220 wl_proxy_marshal((
struct wl_proxy *) zwp_idle_inhibitor_v1,
223 wl_proxy_destroy((
struct wl_proxy *) zwp_idle_inhibitor_v1);