diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-07-31 12:25:37 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-10 13:05:27 -0500 |
commit | f31d07d175b25ecca89f5d55dfdf2b55540e5e44 (patch) | |
tree | 29ac8173604ce126ff3c93a2ed08bd47627eb107 /hw/qdev.h | |
parent | d058fe03e53699b5a85db1ea36edcf59273775a8 (diff) |
QemuOpts: switch over -device.
Make -device switch use the QemuOpts framework.
Everything should continue to work like it did before.
New: "-set device.$id.$property=$value" works.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Diffstat (limited to 'hw/qdev.h')
-rw-r--r-- | hw/qdev.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3,6 +3,7 @@ #include "hw.h" #include "sys-queue.h" +#include "qemu-option.h" typedef struct Property Property; @@ -19,7 +20,7 @@ typedef struct BusInfo BusInfo; /* This structure should not be accessed directly. We declare it here so that it can be embedded in individual device state structures. */ struct DeviceState { - char *id; + const char *id; DeviceInfo *info; BusState *parent_bus; int num_gpio_out; @@ -82,7 +83,7 @@ struct CompatProperty { /*** Board API. This should go away once we have a machine config file. ***/ DeviceState *qdev_create(BusState *bus, const char *name); -DeviceState *qdev_device_add(const char *cmdline); +DeviceState *qdev_device_add(QemuOpts *opts); void qdev_init(DeviceState *dev); void qdev_free(DeviceState *dev); |