diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-02-05 14:34:25 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-02-12 08:27:55 +0000 |
commit | 0bcdeda7e478f1ce1345585d8240e8d5a9b274d5 (patch) | |
tree | 473aa9888c343a78772c02e1cab27f47329a989b /hw/qdev.h | |
parent | 5c81e4ca9e5c11239a9db12f0f57c6c1e24b6760 (diff) |
qdev: add creation function that may fail
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/qdev.h')
-rw-r--r-- | hw/qdev.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -122,6 +122,7 @@ typedef struct GlobalProperty { /*** Board API. This should go away once we have a machine config file. ***/ DeviceState *qdev_create(BusState *bus, const char *name); +DeviceState *qdev_try_create(BusState *bus, const char *name); int qdev_device_help(QemuOpts *opts); DeviceState *qdev_device_add(QemuOpts *opts); int qdev_init(DeviceState *dev) QEMU_WARN_UNUSED_RESULT; |