[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 19/37] qdev: add DEFINE_ABSTRACT_PROP() helper
From: |
Igor Mammedov |
Subject: |
[Qemu-devel] [PATCH 19/37] qdev: add DEFINE_ABSTRACT_PROP() helper |
Date: |
Mon, 22 Oct 2012 17:03:05 +0200 |
It will be used for declaring a static property with a custom setter/getter.
Signed-off-by: Igor Mammedov <address@hidden>
---
hw/qdev-properties.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hw/qdev-properties.h b/hw/qdev-properties.h
index b2f7142..41358fa 100644
--- a/hw/qdev-properties.h
+++ b/hw/qdev-properties.h
@@ -27,6 +27,11 @@ extern PropertyInfo qdev_prop_pci_devfn;
extern PropertyInfo qdev_prop_blocksize;
extern PropertyInfo qdev_prop_pci_host_devaddr;
+#define DEFINE_ABSTRACT_PROP(_name, _prop) { \
+ .name = (_name), \
+ .info = &(_prop), \
+ }
+
#define DEFINE_PROP(_name, _state, _field, _prop, _type) { \
.name = (_name), \
.info = &(_prop), \
--
1.7.11.7
- Re: [Qemu-devel] [PATCH 13/37] target-i386: convert "level" to static property, (continued)
- [Qemu-devel] [PATCH 21/37] target-i386: convert 'hv_relaxed' to static property, Igor Mammedov, 2012/10/22
- [Qemu-devel] [PATCH 11/37] target-i386: introduce vendor-override static property, Igor Mammedov, 2012/10/22
- [Qemu-devel] [PATCH 28/37] target-i386: convert "model-id" to static property, Igor Mammedov, 2012/10/22
- [Qemu-devel] [PATCH 20/37] target-i386: convert 'hv_spinlocks' to static property, Igor Mammedov, 2012/10/22
- [Qemu-devel] [PATCH 19/37] qdev: add DEFINE_ABSTRACT_PROP() helper,
Igor Mammedov <=
- [Qemu-devel] [PATCH 34/37] qdev: introduce QDEV_FIND_PROP_FROM_BIT and qdev_prop_find_bit(), Igor Mammedov, 2012/10/22
- [Qemu-devel] [PATCH 25/37] target-i386: replace uint32_t vendor fields by vendor string in x86_def_t, Igor Mammedov, 2012/10/22
- [Qemu-devel] [PATCH 23/37] target-i386: convert 'check' and 'enforce' to static properties, Igor Mammedov, 2012/10/22
- [Qemu-devel] [PATCH 36/37] target-i386: use static properties to list CPUID features, Igor Mammedov, 2012/10/22
- Re: [Qemu-devel] [PATCH 36/37] target-i386: use static properties to list CPUID features, Don Slutz, 2012/10/23
[Qemu-devel] [PATCH 37/37] target-i386: cleanup cpu_x86_find_by_name(), only fill x86_def_t in it, Igor Mammedov, 2012/10/22