@@ -9,22 +9,6 @@
#include "qapi/qapi-types-ui.h"
-typedef enum QKbdModifier QKbdModifier;
-
-enum QKbdModifier {
- Q_KBD_MODIFIER_NONE = 0,
-
- Q_KBD_MODIFIER_SHIFT,
- Q_KBD_MODIFIER_CTRL,
- Q_KBD_MODIFIER_ALT,
- Q_KBD_MODIFIER_ALTGR,
-
- Q_KBD_MODIFIER_NUMLOCK,
- Q_KBD_MODIFIER_CAPSLOCK,
-
- Q_KBD_MODIFIER__MAX
-};
-
typedef struct QKbdState QKbdState;
/**
@@ -920,6 +920,16 @@
'ac_home', 'ac_back', 'ac_forward', 'ac_refresh', 'ac_bookmarks',
'lang1', 'lang2' ] }
+##
+# @QKbdModifier:
+#
+# An enumeration of keyboard modifier name.
+#
+# Since: 8.0
+##
+{ 'enum': 'QKbdModifier',
+ 'data': [ 'none', 'shift', 'ctrl', 'alt', 'altgr', 'numlock', 'capslock' ] }
+
##
# @KeyValueKind:
#
Let QAPI maintain the QKbdModifier enum values. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- include/ui/kbd-state.h | 16 ---------------- qapi/ui.json | 10 ++++++++++ 2 files changed, 10 insertions(+), 16 deletions(-)