summaryrefslogtreecommitdiffstats
path: root/include/qemu
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2015-05-12 17:09:19 +0100
committerKevin Wolf <kwolf@redhat.com>2015-05-22 17:08:01 +0200
commitd57e4e482e3997b1382625c84149ad0b69155fc0 (patch)
tree3ce7f69edf3c4e628e464f3c0d846a23a7c74cba /include/qemu
parent8336aafae1451d54c81dd2b187b45f7c45d2428e (diff)
downloadhqemu-d57e4e482e3997b1382625c84149ad0b69155fc0.zip
hqemu-d57e4e482e3997b1382625c84149ad0b69155fc0.tar.gz
util: move read_password method out of qemu-img into osdep/oslib
The qemu-img.c file has a read_password() method impl that is used to prompt for passwords on the console, with impls for POSIX and Windows. This will be needed by qemu-io.c too, so move it into the QEMU osdep/oslib files where it can be shared without code duplication Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/qemu')
-rw-r--r--include/qemu/osdep.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index b3300cc..3247364 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -259,4 +259,6 @@ void qemu_set_tty_echo(int fd, bool echo);
void os_mem_prealloc(int fd, char *area, size_t sz);
+int qemu_read_password(char *buf, int buf_size);
+
#endif
OpenPOWER on IntegriCloud