Patchwork [2/3] qdev: add data pointer to Property

login
register
mail settings
Submitter Alon Levy
Date Jan. 18, 2011, 10:58 a.m.
Message ID <1295348320-32099-3-git-send-email-alevy@redhat.com>
Download mbox | patch
Permalink /patch/79285/
State New
Headers show

Comments

Alon Levy - Jan. 18, 2011, 10:58 a.m.
For later use by PROP_TYPE_ENUM, will store enumeration name/value
table there.
---
 hw/qdev.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/qdev.h b/hw/qdev.h
index 530fc5d..f6d5279 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -83,6 +83,7 @@  struct Property {
     int          offset;
     int          bitnr;
     void         *defval;
+    void         *data;
 };
 
 enum PropertyType {