summaryrefslogtreecommitdiff
path: root/sysemu.h
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-11 15:20:46 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-11 15:20:46 +0000
commit4d73cd3b3f55fcff433ce64b125b7adb8aaece29 (patch)
tree573ae20025d481672fcbd3499f7d3b3509c4502f /sysemu.h
parentec691c804f66ee99dc24a6cfe4467a56982f9115 (diff)
downloadqemu-4d73cd3b3f55fcff433ce64b125b7adb8aaece29.tar.gz
qemu-4d73cd3b3f55fcff433ce64b125b7adb8aaece29.tar.bz2
qemu-4d73cd3b3f55fcff433ce64b125b7adb8aaece29.zip
qemu: net/drive add/remove tweaks (Marcelo Tosatti)
Export net/drive add/remove functions for device hotplug usage. Return the table index on add. Return failure instead of exiting if limit has been reached on drive_add. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6599 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'sysemu.h')
-rw-r--r--sysemu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysemu.h b/sysemu.h
index 9b99343368..2cd16b1f60 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -163,6 +163,9 @@ struct drive_opt {
extern struct drive_opt drives_opt[MAX_DRIVES];
extern int nb_drives_opt;
+extern int drive_add(const char *file, const char *fmt, ...);
+extern int drive_init(struct drive_opt *arg, int snapshot, void *machine);
+
/* serial ports */
#define MAX_SERIAL_PORTS 4