summaryrefslogtreecommitdiff
path: root/hw/qdev.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-10-21 15:25:23 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-27 12:28:37 -0500
commit1503fff34376e8f33e21480f9edd03bfb7f10cb6 (patch)
tree89a456e85aaa2c9170e019488164ef4c68f2b6c5 /hw/qdev.h
parent76d32cba7e502faf04fdce6b14b2f94a301e6dc8 (diff)
downloadqemu-1503fff34376e8f33e21480f9edd03bfb7f10cb6.tar.gz
qemu-1503fff34376e8f33e21480f9edd03bfb7f10cb6.tar.bz2
qemu-1503fff34376e8f33e21480f9edd03bfb7f10cb6.zip
qdev: mac addr property fixups
Make the mac property use the newly added type for the mac address. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev.h')
-rw-r--r--hw/qdev.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/qdev.h b/hw/qdev.h
index b79f3e3f51..4d2decd854 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -234,7 +234,7 @@ extern PropertyInfo qdev_prop_pci_devfn;
#define DEFINE_PROP_DRIVE(_n, _s, _f) \
DEFINE_PROP(_n, _s, _f, qdev_prop_drive, DriveInfo*)
#define DEFINE_PROP_MACADDR(_n, _s, _f) \
- DEFINE_PROP(_n, _s, _f, qdev_prop_macaddr, uint8_t[6])
+ DEFINE_PROP(_n, _s, _f, qdev_prop_macaddr, MACAddr)
#define DEFINE_PROP_END_OF_LIST() \
{}
@@ -250,6 +250,7 @@ void qdev_prop_set_int32(DeviceState *dev, const char *name, int32_t value);
void qdev_prop_set_uint64(DeviceState *dev, const char *name, uint64_t value);
void qdev_prop_set_chr(DeviceState *dev, const char *name, CharDriverState *value);
void qdev_prop_set_drive(DeviceState *dev, const char *name, DriveInfo *value);
+void qdev_prop_set_macaddr(DeviceState *dev, const char *name, uint8_t *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);