diff --git a/sysemu.h b/sysemu.h index 78d70c548f95ef67554d40ef31822483474684e3..9b993433689c9b69f4d78c6d31db494a4d82a529 100644 --- a/sysemu.h +++ b/sysemu.h @@ -154,6 +154,15 @@ extern void drive_remove(int index); extern const char *drive_get_serial(BlockDriverState *bdrv); extern BlockInterfaceErrorAction drive_get_onerror(BlockDriverState *bdrv); +struct drive_opt { + const char *file; + char opt[1024]; + int used; +}; + +extern struct drive_opt drives_opt[MAX_DRIVES]; +extern int nb_drives_opt; + /* serial ports */ #define MAX_SERIAL_PORTS 4 diff --git a/vl.c b/vl.c index 219815114d084a5e2e0267f2f5ce3c8feddffe47..7b51b54b9e87dc43534c36580e7898d2b79fb7a2 100644 --- a/vl.c +++ b/vl.c @@ -242,12 +242,8 @@ int alt_grab = 0; unsigned int nb_prom_envs = 0; const char *prom_envs[MAX_PROM_ENVS]; #endif -static int nb_drives_opt; -static struct drive_opt { - const char *file; - char opt[1024]; - int used; -} drives_opt[MAX_DRIVES]; +int nb_drives_opt; +struct drive_opt drives_opt[MAX_DRIVES]; static CPUState *cur_cpu; static CPUState *next_cpu;