]> git.proxmox.com Git - qemu.git/blobdiff - console.h
monitor: move key_defs[] table and introduce two help functions
[qemu.git] / console.h
index 4334db5ca5f0be872cfacfc5c85800a0ab947217..7934b1189420989622698e6b2a7b06e187d55823 100644 (file)
--- a/console.h
+++ b/console.h
@@ -6,6 +6,7 @@
 #include "notify.h"
 #include "monitor.h"
 #include "trace.h"
+#include "qapi-types.h"
 
 /* keyboard/mouse support */
 
@@ -397,4 +398,9 @@ static inline int vnc_display_pw_expire(DisplayState *ds, time_t expires)
 /* curses.c */
 void curses_display_init(DisplayState *ds, int full_screen);
 
+/* input.c */
+extern const int key_defs[];
+int index_from_key(const char *key);
+int index_from_keycode(int code);
+
 #endif