aboutsummaryrefslogtreecommitdiffstats
path: root/sysemu.h
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-12-07 12:12:04 -0800
committerSan Mehat <san@google.com>2009-12-07 15:04:10 -0800
commit7ab6d35b98bc279a5fcd36965433a51a3c9aecd9 (patch)
tree3fcf41e31e94a6cbeb71e1e3d51c57a89d046308 /sysemu.h
parent68a8f7b5ed6ee2bbbc7b67070b9c401c2276426f (diff)
downloadexternal_qemu-7ab6d35b98bc279a5fcd36965433a51a3c9aecd9.zip
external_qemu-7ab6d35b98bc279a5fcd36965433a51a3c9aecd9.tar.gz
external_qemu-7ab6d35b98bc279a5fcd36965433a51a3c9aecd9.tar.bz2
qemu: android: Add support for hot-adding disks as well as swapping image files
Signed-off-by: San Mehat <san@google.com>
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 fe24415..7959197 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -173,6 +173,7 @@ extern int nb_drives;
extern DriveInfo drives_table[MAX_DRIVES+1];
extern int drive_get_index(BlockInterfaceType type, int bus, int unit);
+extern int drive_get_index_by_bdrv(BlockDriverState *bdrv);
extern int drive_get_max_bus(BlockInterfaceType type);
extern void drive_uninit(BlockDriverState *bdrv);
extern void drive_remove(int index);
@@ -192,6 +193,8 @@ 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);
+extern int drive_swap(struct BlockDriverState *bdrv, const char *file);
+extern int drive_hotadd(const char *file, const char *fmt, ...);
/* acpi */
void qemu_system_hot_add_init(void);