aboutsummaryrefslogtreecommitdiff
path: root/hw/qdev.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-07-31 12:25:40 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:05:27 -0500
commit14b41872fd4ccdb750d539f1f317ae0e070f73a4 (patch)
tree53fc8c557be4d1897bd94238a1d731b2cfc1c85f /hw/qdev.h
parentadd -drive if=none (diff)
downloadqemu-kvm-14b41872fd4ccdb750d539f1f317ae0e070f73a4.tar.gz
qemu-kvm-14b41872fd4ccdb750d539f1f317ae0e070f73a4.tar.bz2
qemu-kvm-14b41872fd4ccdb750d539f1f317ae0e070f73a4.zip
qdev/prop: add drive property.
Adds a (host) drive property, intended to be used by virtual disk backend drivers. 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/qdev.h b/hw/qdev.h
index 0f0acb13a..91d9f5f18 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -2,6 +2,7 @@
#define QDEV_H
#include "hw.h"
+#include "sysemu.h"
#include "sys-queue.h"
#include "qemu-option.h"
@@ -63,6 +64,7 @@ enum PropertyType {
PROP_TYPE_UINT64,
PROP_TYPE_TADDR,
PROP_TYPE_MACADDR,
+ PROP_TYPE_DRIVE,
PROP_TYPE_PTR,
};
@@ -155,6 +157,7 @@ extern PropertyInfo qdev_prop_hex32;
extern PropertyInfo qdev_prop_hex64;
extern PropertyInfo qdev_prop_ptr;
extern PropertyInfo qdev_prop_macaddr;
+extern PropertyInfo qdev_prop_drive;
extern PropertyInfo qdev_prop_pci_devfn;
/* Set properties between creation and init. */
@@ -164,6 +167,7 @@ void qdev_prop_set(DeviceState *dev, const char *name, void *src, enum PropertyT
void qdev_prop_set_uint16(DeviceState *dev, const char *name, uint16_t value);
void qdev_prop_set_uint32(DeviceState *dev, const char *name, uint32_t value);
void qdev_prop_set_uint64(DeviceState *dev, const char *name, uint64_t value);
+void qdev_prop_set_drive(DeviceState *dev, const char *name, DriveInfo *value);
/* FIXME: Remove opaque pointer properties. */
void qdev_prop_set_ptr(DeviceState *dev, const char *name, void *value);
void qdev_prop_set_defaults(DeviceState *dev, Property *props);