| OLD | NEW |
| 1 /* Generated by wayland-scanner 1.11.0 */ | 1 /* Generated by wayland-scanner 1.11.0 */ |
| 2 | 2 |
| 3 #ifndef KEYBOARD_CONFIGURATION_UNSTABLE_V1_SERVER_PROTOCOL_H | 3 #ifndef KEYBOARD_CONFIGURATION_UNSTABLE_V1_SERVER_PROTOCOL_H |
| 4 #define KEYBOARD_CONFIGURATION_UNSTABLE_V1_SERVER_PROTOCOL_H | 4 #define KEYBOARD_CONFIGURATION_UNSTABLE_V1_SERVER_PROTOCOL_H |
| 5 | 5 |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include "wayland-server.h" | 8 #include "wayland-server.h" |
| 9 | 9 |
| 10 #ifdef __cplusplus | 10 #ifdef __cplusplus |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 * See @ref iface_zcr_keyboard_device_configuration_v1. | 92 * See @ref iface_zcr_keyboard_device_configuration_v1. |
| 93 */ | 93 */ |
| 94 /** | 94 /** |
| 95 * @defgroup iface_zcr_keyboard_device_configuration_v1 The zcr_keyboard_device_
configuration_v1 interface | 95 * @defgroup iface_zcr_keyboard_device_configuration_v1 The zcr_keyboard_device_
configuration_v1 interface |
| 96 * | 96 * |
| 97 * The zcr_keyboard_device_configuration_v1 interface extends the wl_keyboard | 97 * The zcr_keyboard_device_configuration_v1 interface extends the wl_keyboard |
| 98 * interface with events to describe device configuration of a keyboard. | 98 * interface with events to describe device configuration of a keyboard. |
| 99 */ | 99 */ |
| 100 extern const struct wl_interface zcr_keyboard_device_configuration_v1_interface; | 100 extern const struct wl_interface zcr_keyboard_device_configuration_v1_interface; |
| 101 | 101 |
| 102 #ifndef ZCR_KEYBOARD_CONFIGURATION_V1_ERROR_ENUM |
| 103 #define ZCR_KEYBOARD_CONFIGURATION_V1_ERROR_ENUM |
| 104 enum zcr_keyboard_configuration_v1_error { |
| 105 /** |
| 106 * the keyboard already has a device configuration object associated |
| 107 */ |
| 108 ZCR_KEYBOARD_CONFIGURATION_V1_ERROR_DEVICE_CONFIGURATION_EXISTS = 0, |
| 109 }; |
| 110 #endif /* ZCR_KEYBOARD_CONFIGURATION_V1_ERROR_ENUM */ |
| 111 |
| 102 /** | 112 /** |
| 103 * @ingroup iface_zcr_keyboard_configuration_v1 | 113 * @ingroup iface_zcr_keyboard_configuration_v1 |
| 104 * @struct zcr_keyboard_configuration_v1_interface | 114 * @struct zcr_keyboard_configuration_v1_interface |
| 105 */ | 115 */ |
| 106 struct zcr_keyboard_configuration_v1_interface { | 116 struct zcr_keyboard_configuration_v1_interface { |
| 107 /** | 117 /** |
| 108 * get keyboard_device_configuration interface for a keyboard | 118 * get keyboard_device_configuration interface for a keyboard |
| 109 * | 119 * |
| 110 * Create keyboard_device_configuration object. See | 120 * Create keyboard_device_configuration object. See |
| 111 » * zcr_keyboard_device_configuration interface for details. | 121 » * zcr_keyboard_device_configuration interface for details. If the |
| 122 » * given wl_keyboard object already has a security object |
| 123 » * associated, the keyboard_device_configuration_exists protocol |
| 124 » * error is raised. |
| 112 */ | 125 */ |
| 113 void (*get_keyboard_device_configuration)(struct wl_client *client, | 126 void (*get_keyboard_device_configuration)(struct wl_client *client, |
| 114 struct wl_resource *resource, | 127 struct wl_resource *resource, |
| 115 uint32_t id, | 128 uint32_t id, |
| 116 struct wl_resource *keyboard); | 129 struct wl_resource *keyboard); |
| 117 }; | 130 }; |
| 118 | 131 |
| 119 | 132 |
| 120 #ifndef ZCR_KEYBOARD_DEVICE_CONFIGURATION_V1_KEYBOARD_TYPE_ENUM | 133 #ifndef ZCR_KEYBOARD_DEVICE_CONFIGURATION_V1_KEYBOARD_TYPE_ENUM |
| 121 #define ZCR_KEYBOARD_DEVICE_CONFIGURATION_V1_KEYBOARD_TYPE_ENUM | 134 #define ZCR_KEYBOARD_DEVICE_CONFIGURATION_V1_KEYBOARD_TYPE_ENUM |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 zcr_keyboard_device_configuration_v1_send_type_change(struct wl_resource *resour
ce_, uint32_t type) | 179 zcr_keyboard_device_configuration_v1_send_type_change(struct wl_resource *resour
ce_, uint32_t type) |
| 167 { | 180 { |
| 168 wl_resource_post_event(resource_, ZCR_KEYBOARD_DEVICE_CONFIGURATION_V1_T
YPE_CHANGE, type); | 181 wl_resource_post_event(resource_, ZCR_KEYBOARD_DEVICE_CONFIGURATION_V1_T
YPE_CHANGE, type); |
| 169 } | 182 } |
| 170 | 183 |
| 171 #ifdef __cplusplus | 184 #ifdef __cplusplus |
| 172 } | 185 } |
| 173 #endif | 186 #endif |
| 174 | 187 |
| 175 #endif | 188 #endif |
| OLD | NEW |