MythTV  master
idle_inhibit_unstable_v1.h
Go to the documentation of this file.
1 /* Generated by wayland-scanner 1.18.0 */
2 
3 #ifndef IDLE_INHIBIT_UNSTABLE_V1_CLIENT_PROTOCOL_H
4 #define IDLE_INHIBIT_UNSTABLE_V1_CLIENT_PROTOCOL_H
5 
6 #include <stdint.h>
7 #include <stddef.h>
8 #include "wayland-client.h"
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
44 struct wl_surface;
45 struct zwp_idle_inhibit_manager_v1;
46 struct zwp_idle_inhibitor_v1;
47 
83 extern const struct wl_interface zwp_idle_inhibit_manager_v1_interface;
119 extern const struct wl_interface zwp_idle_inhibitor_v1_interface;
120 
121 #define ZWP_IDLE_INHIBIT_MANAGER_V1_DESTROY 0
122 #define ZWP_IDLE_INHIBIT_MANAGER_V1_CREATE_INHIBITOR 1
123 
124 
128 #define ZWP_IDLE_INHIBIT_MANAGER_V1_DESTROY_SINCE_VERSION 1
129 
132 #define ZWP_IDLE_INHIBIT_MANAGER_V1_CREATE_INHIBITOR_SINCE_VERSION 1
133 
135 static inline void
136 zwp_idle_inhibit_manager_v1_set_user_data(struct zwp_idle_inhibit_manager_v1 *zwp_idle_inhibit_manager_v1, void *user_data)
137 {
138  wl_proxy_set_user_data((struct wl_proxy *) zwp_idle_inhibit_manager_v1, user_data);
139 }
140 
142 static inline void *
143 zwp_idle_inhibit_manager_v1_get_user_data(struct zwp_idle_inhibit_manager_v1 *zwp_idle_inhibit_manager_v1)
144 {
145  return wl_proxy_get_user_data((struct wl_proxy *) zwp_idle_inhibit_manager_v1);
146 }
147 
148 static inline uint32_t
149 zwp_idle_inhibit_manager_v1_get_version(struct zwp_idle_inhibit_manager_v1 *zwp_idle_inhibit_manager_v1)
150 {
151  return wl_proxy_get_version((struct wl_proxy *) zwp_idle_inhibit_manager_v1);
152 }
153 
159 static inline void
160 zwp_idle_inhibit_manager_v1_destroy(struct zwp_idle_inhibit_manager_v1 *zwp_idle_inhibit_manager_v1)
161 {
162  wl_proxy_marshal((struct wl_proxy *) zwp_idle_inhibit_manager_v1,
164 
165  wl_proxy_destroy((struct wl_proxy *) zwp_idle_inhibit_manager_v1);
166 }
167 
173 static inline struct zwp_idle_inhibitor_v1 *
174 zwp_idle_inhibit_manager_v1_create_inhibitor(struct zwp_idle_inhibit_manager_v1 *zwp_idle_inhibit_manager_v1, struct wl_surface *surface)
175 {
176  struct wl_proxy *id;
177 
178  id = wl_proxy_marshal_constructor((struct wl_proxy *) zwp_idle_inhibit_manager_v1,
180 
181  return (struct zwp_idle_inhibitor_v1 *) id;
182 }
183 
184 #define ZWP_IDLE_INHIBITOR_V1_DESTROY 0
185 
186 
190 #define ZWP_IDLE_INHIBITOR_V1_DESTROY_SINCE_VERSION 1
191 
193 static inline void
194 zwp_idle_inhibitor_v1_set_user_data(struct zwp_idle_inhibitor_v1 *zwp_idle_inhibitor_v1, void *user_data)
195 {
196  wl_proxy_set_user_data((struct wl_proxy *) zwp_idle_inhibitor_v1, user_data);
197 }
198 
200 static inline void *
201 zwp_idle_inhibitor_v1_get_user_data(struct zwp_idle_inhibitor_v1 *zwp_idle_inhibitor_v1)
202 {
203  return wl_proxy_get_user_data((struct wl_proxy *) zwp_idle_inhibitor_v1);
204 }
205 
206 static inline uint32_t
207 zwp_idle_inhibitor_v1_get_version(struct zwp_idle_inhibitor_v1 *zwp_idle_inhibitor_v1)
208 {
209  return wl_proxy_get_version((struct wl_proxy *) zwp_idle_inhibitor_v1);
210 }
211 
217 static inline void
218 zwp_idle_inhibitor_v1_destroy(struct zwp_idle_inhibitor_v1 *zwp_idle_inhibitor_v1)
219 {
220  wl_proxy_marshal((struct wl_proxy *) zwp_idle_inhibitor_v1,
222 
223  wl_proxy_destroy((struct wl_proxy *) zwp_idle_inhibitor_v1);
224 }
225 
226 #ifdef __cplusplus
227 }
228 #endif
229 
230 #endif
zwp_idle_inhibitor_v1_get_version
static uint32_t zwp_idle_inhibitor_v1_get_version(struct zwp_idle_inhibitor_v1 *zwp_idle_inhibitor_v1)
Definition: idle_inhibit_unstable_v1.h:207
zwp_idle_inhibit_manager_v1_get_user_data
static void * zwp_idle_inhibit_manager_v1_get_user_data(struct zwp_idle_inhibit_manager_v1 *zwp_idle_inhibit_manager_v1)
Definition: idle_inhibit_unstable_v1.h:143
ZWP_IDLE_INHIBIT_MANAGER_V1_CREATE_INHIBITOR
#define ZWP_IDLE_INHIBIT_MANAGER_V1_CREATE_INHIBITOR
Definition: idle_inhibit_unstable_v1.h:122
zwp_idle_inhibitor_v1_get_user_data
static void * zwp_idle_inhibitor_v1_get_user_data(struct zwp_idle_inhibitor_v1 *zwp_idle_inhibitor_v1)
Definition: idle_inhibit_unstable_v1.h:201
ZWP_IDLE_INHIBIT_MANAGER_V1_DESTROY
#define ZWP_IDLE_INHIBIT_MANAGER_V1_DESTROY
Definition: idle_inhibit_unstable_v1.h:121
NULL
#define NULL
Definition: H2645Parser.h:67
zwp_idle_inhibitor_v1_interface
const struct wl_interface zwp_idle_inhibitor_v1_interface
Definition: idle_inhibit_unstable_v1.c:58
zwp_idle_inhibitor_v1_set_user_data
static void zwp_idle_inhibitor_v1_set_user_data(struct zwp_idle_inhibitor_v1 *zwp_idle_inhibitor_v1, void *user_data)
Definition: idle_inhibit_unstable_v1.h:194
zwp_idle_inhibit_manager_v1_create_inhibitor
static struct zwp_idle_inhibitor_v1 * zwp_idle_inhibit_manager_v1_create_inhibitor(struct zwp_idle_inhibit_manager_v1 *zwp_idle_inhibit_manager_v1, struct wl_surface *surface)
Definition: idle_inhibit_unstable_v1.h:174
zwp_idle_inhibit_manager_v1_get_version
static uint32_t zwp_idle_inhibit_manager_v1_get_version(struct zwp_idle_inhibit_manager_v1 *zwp_idle_inhibit_manager_v1)
Definition: idle_inhibit_unstable_v1.h:149
ZWP_IDLE_INHIBITOR_V1_DESTROY
#define ZWP_IDLE_INHIBITOR_V1_DESTROY
Definition: idle_inhibit_unstable_v1.h:184
zwp_idle_inhibit_manager_v1_interface
const struct wl_interface zwp_idle_inhibit_manager_v1_interface
Definition: idle_inhibit_unstable_v1.c:49
zwp_idle_inhibit_manager_v1_set_user_data
static void zwp_idle_inhibit_manager_v1_set_user_data(struct zwp_idle_inhibit_manager_v1 *zwp_idle_inhibit_manager_v1, void *user_data)
Definition: idle_inhibit_unstable_v1.h:136
zwp_idle_inhibit_manager_v1_destroy
static void zwp_idle_inhibit_manager_v1_destroy(struct zwp_idle_inhibit_manager_v1 *zwp_idle_inhibit_manager_v1)
Definition: idle_inhibit_unstable_v1.h:160
zwp_idle_inhibitor_v1_destroy
static void zwp_idle_inhibitor_v1_destroy(struct zwp_idle_inhibitor_v1 *zwp_idle_inhibitor_v1)
Definition: idle_inhibit_unstable_v1.h:218