Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: third_party/wayland-protocols/include/protocol/keyboard-configuration-unstable-v1-client-protocol.h

Issue 2564353002: wayland-protocols: Add device_configuration_exists error to zcr_keyboard_configuration_v1 interface. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* Generated by wayland-scanner 1.11.0 */ 1 /* Generated by wayland-scanner 1.11.0 */
2 2
3 #ifndef KEYBOARD_CONFIGURATION_UNSTABLE_V1_CLIENT_PROTOCOL_H 3 #ifndef KEYBOARD_CONFIGURATION_UNSTABLE_V1_CLIENT_PROTOCOL_H
4 #define KEYBOARD_CONFIGURATION_UNSTABLE_V1_CLIENT_PROTOCOL_H 4 #define KEYBOARD_CONFIGURATION_UNSTABLE_V1_CLIENT_PROTOCOL_H
5 5
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <stddef.h> 7 #include <stddef.h>
8 #include "wayland-client.h" 8 #include "wayland-client.h"
9 9
10 #ifdef __cplusplus 10 #ifdef __cplusplus
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 * See @ref iface_zcr_keyboard_device_configuration_v1. 89 * See @ref iface_zcr_keyboard_device_configuration_v1.
90 */ 90 */
91 /** 91 /**
92 * @defgroup iface_zcr_keyboard_device_configuration_v1 The zcr_keyboard_device_ configuration_v1 interface 92 * @defgroup iface_zcr_keyboard_device_configuration_v1 The zcr_keyboard_device_ configuration_v1 interface
93 * 93 *
94 * The zcr_keyboard_device_configuration_v1 interface extends the wl_keyboard 94 * The zcr_keyboard_device_configuration_v1 interface extends the wl_keyboard
95 * interface with events to describe device configuration of a keyboard. 95 * interface with events to describe device configuration of a keyboard.
96 */ 96 */
97 extern const struct wl_interface zcr_keyboard_device_configuration_v1_interface; 97 extern const struct wl_interface zcr_keyboard_device_configuration_v1_interface;
98 98
99 #ifndef ZCR_KEYBOARD_CONFIGURATION_V1_ERROR_ENUM
100 #define ZCR_KEYBOARD_CONFIGURATION_V1_ERROR_ENUM
101 enum zcr_keyboard_configuration_v1_error {
102 /**
103 * the keyboard already has a device configuration object associated
104 */
105 ZCR_KEYBOARD_CONFIGURATION_V1_ERROR_DEVICE_CONFIGURATION_EXISTS = 0,
106 };
107 #endif /* ZCR_KEYBOARD_CONFIGURATION_V1_ERROR_ENUM */
108
99 #define ZCR_KEYBOARD_CONFIGURATION_V1_GET_KEYBOARD_DEVICE_CONFIGURATION 0 109 #define ZCR_KEYBOARD_CONFIGURATION_V1_GET_KEYBOARD_DEVICE_CONFIGURATION 0
100 110
101 /** 111 /**
102 * @ingroup iface_zcr_keyboard_configuration_v1 112 * @ingroup iface_zcr_keyboard_configuration_v1
103 */ 113 */
104 #define ZCR_KEYBOARD_CONFIGURATION_V1_GET_KEYBOARD_DEVICE_CONFIGURATION_SINCE_VE RSION 1 114 #define ZCR_KEYBOARD_CONFIGURATION_V1_GET_KEYBOARD_DEVICE_CONFIGURATION_SINCE_VE RSION 1
105 115
106 /** @ingroup iface_zcr_keyboard_configuration_v1 */ 116 /** @ingroup iface_zcr_keyboard_configuration_v1 */
107 static inline void 117 static inline void
108 zcr_keyboard_configuration_v1_set_user_data(struct zcr_keyboard_configuration_v1 *zcr_keyboard_configuration_v1, void *user_data) 118 zcr_keyboard_configuration_v1_set_user_data(struct zcr_keyboard_configuration_v1 *zcr_keyboard_configuration_v1, void *user_data)
(...skipping 19 matching lines...) Expand all
128 zcr_keyboard_configuration_v1_destroy(struct zcr_keyboard_configuration_v1 *zcr_ keyboard_configuration_v1) 138 zcr_keyboard_configuration_v1_destroy(struct zcr_keyboard_configuration_v1 *zcr_ keyboard_configuration_v1)
129 { 139 {
130 wl_proxy_destroy((struct wl_proxy *) zcr_keyboard_configuration_v1); 140 wl_proxy_destroy((struct wl_proxy *) zcr_keyboard_configuration_v1);
131 } 141 }
132 142
133 /** 143 /**
134 * @ingroup iface_zcr_keyboard_configuration_v1 144 * @ingroup iface_zcr_keyboard_configuration_v1
135 * 145 *
136 * Create keyboard_device_configuration object. 146 * Create keyboard_device_configuration object.
137 * See zcr_keyboard_device_configuration interface for details. 147 * See zcr_keyboard_device_configuration interface for details.
148 * If the given wl_keyboard object already has a security object associated,
149 * the keyboard_device_configuration_exists protocol error is raised.
138 */ 150 */
139 static inline struct zcr_keyboard_device_configuration_v1 * 151 static inline struct zcr_keyboard_device_configuration_v1 *
140 zcr_keyboard_configuration_v1_get_keyboard_device_configuration(struct zcr_keybo ard_configuration_v1 *zcr_keyboard_configuration_v1, struct wl_keyboard *keyboar d) 152 zcr_keyboard_configuration_v1_get_keyboard_device_configuration(struct zcr_keybo ard_configuration_v1 *zcr_keyboard_configuration_v1, struct wl_keyboard *keyboar d)
141 { 153 {
142 struct wl_proxy *id; 154 struct wl_proxy *id;
143 155
144 id = wl_proxy_marshal_constructor((struct wl_proxy *) zcr_keyboard_confi guration_v1, 156 id = wl_proxy_marshal_constructor((struct wl_proxy *) zcr_keyboard_confi guration_v1,
145 ZCR_KEYBOARD_CONFIGURATION_V1_GET_KEYBOARD_DEVICE_CONFI GURATION, &zcr_keyboard_device_configuration_v1_interface, NULL, keyboard); 157 ZCR_KEYBOARD_CONFIGURATION_V1_GET_KEYBOARD_DEVICE_CONFI GURATION, &zcr_keyboard_device_configuration_v1_interface, NULL, keyboard);
146 158
147 return (struct zcr_keyboard_device_configuration_v1 *) id; 159 return (struct zcr_keyboard_device_configuration_v1 *) id;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 ZCR_KEYBOARD_DEVICE_CONFIGURATION_V1_DESTROY); 244 ZCR_KEYBOARD_DEVICE_CONFIGURATION_V1_DESTROY);
233 245
234 wl_proxy_destroy((struct wl_proxy *) zcr_keyboard_device_configuration_v 1); 246 wl_proxy_destroy((struct wl_proxy *) zcr_keyboard_device_configuration_v 1);
235 } 247 }
236 248
237 #ifdef __cplusplus 249 #ifdef __cplusplus
238 } 250 }
239 #endif 251 #endif
240 252
241 #endif 253 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698