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

Unified Diff: third_party/wayland-protocols/include/protocol/keyboard-configuration-unstable-v1-server-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 side-by-side diff with in-line comments
Download patch
Index: third_party/wayland-protocols/include/protocol/keyboard-configuration-unstable-v1-server-protocol.h
diff --git a/third_party/wayland-protocols/include/protocol/keyboard-configuration-unstable-v1-server-protocol.h b/third_party/wayland-protocols/include/protocol/keyboard-configuration-unstable-v1-server-protocol.h
index 3eda50356f4e32afabeeed8e0c2c1b59bc3d64a3..8eb4c07e4070f0f32c0c1d25a5c18be236ec3065 100644
--- a/third_party/wayland-protocols/include/protocol/keyboard-configuration-unstable-v1-server-protocol.h
+++ b/third_party/wayland-protocols/include/protocol/keyboard-configuration-unstable-v1-server-protocol.h
@@ -99,6 +99,16 @@ extern const struct wl_interface zcr_keyboard_configuration_v1_interface;
*/
extern const struct wl_interface zcr_keyboard_device_configuration_v1_interface;
+#ifndef ZCR_KEYBOARD_CONFIGURATION_V1_ERROR_ENUM
+#define ZCR_KEYBOARD_CONFIGURATION_V1_ERROR_ENUM
+enum zcr_keyboard_configuration_v1_error {
+ /**
+ * the keyboard already has a device configuration object associated
+ */
+ ZCR_KEYBOARD_CONFIGURATION_V1_ERROR_DEVICE_CONFIGURATION_EXISTS = 0,
+};
+#endif /* ZCR_KEYBOARD_CONFIGURATION_V1_ERROR_ENUM */
+
/**
* @ingroup iface_zcr_keyboard_configuration_v1
* @struct zcr_keyboard_configuration_v1_interface
@@ -108,7 +118,10 @@ struct zcr_keyboard_configuration_v1_interface {
* get keyboard_device_configuration interface for a keyboard
*
* Create keyboard_device_configuration object. See
- * zcr_keyboard_device_configuration interface for details.
+ * zcr_keyboard_device_configuration interface for details. If the
+ * given wl_keyboard object already has a security object
+ * associated, the keyboard_device_configuration_exists protocol
+ * error is raised.
*/
void (*get_keyboard_device_configuration)(struct wl_client *client,
struct wl_resource *resource,

Powered by Google App Engine
This is Rietveld 408576698