]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/qemu/readline.h
Merge remote-tracking branch 'remotes/kraxel/tags/vga-20180927-pull-request' into...
[mirror_qemu.git] / include / qemu / readline.h
index a89fe4a9a9644c5af3ef50b560e1247b95e08cdf..e81258322be699fc3e93d7effba8d2c562d1ac2b 100644 (file)
@@ -5,7 +5,8 @@
 #define READLINE_MAX_CMDS 64
 #define READLINE_MAX_COMPLETIONS 256
 
-typedef void ReadLinePrintfFunc(void *opaque, const char *fmt, ...);
+typedef void GCC_FMT_ATTR(2, 3) ReadLinePrintfFunc(void *opaque,
+                                                   const char *fmt, ...);
 typedef void ReadLineFlushFunc(void *opaque);
 typedef void ReadLineFunc(void *opaque, const char *str,
                           void *readline_opaque);
@@ -58,5 +59,6 @@ ReadLineState *readline_init(ReadLinePrintfFunc *printf_func,
                              ReadLineFlushFunc *flush_func,
                              void *opaque,
                              ReadLineCompletionFunc *completion_finder);
+void readline_free(ReadLineState *rs);
 
-#endif /* !READLINE_H */
+#endif /* READLINE_H */