[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/7] qom: Save type name in LinkProperty
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH 3/7] qom: Save type name in LinkProperty |
Date: |
Wed, 28 Jun 2017 20:48:46 +0800 |
Signed-off-by: Fam Zheng <address@hidden>
---
include/qom/object.h | 1 +
qom/object.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/include/qom/object.h b/include/qom/object.h
index 4659e6a..262cd44 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -1618,6 +1618,7 @@ typedef struct {
Object **child;
void (*check)(Object *, const char *, Object *, Error **);
ObjectPropertyLinkFlags flags;
+ const char *type;
} LinkProperty;
void object_get_link_property(Object *obj, Visitor *v,
diff --git a/qom/object.c b/qom/object.c
index dd9c3fa..b3073a6 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -1562,6 +1562,7 @@ void object_property_add_link(Object *obj, const char
*name,
prop->child = child;
prop->check = check;
prop->flags = flags;
+ prop->type = type;
full_type = g_strdup_printf("link<%s>", type);
--
2.9.4
[Qemu-devel] [PATCH 5/7] virtio-blk: Use DEFINE_PROP_LINK, Fam Zheng, 2017/06/28
[Qemu-devel] [PATCH 6/7] virtio-scsi: Use DEFINE_PROP_LINK, Fam Zheng, 2017/06/28
[Qemu-devel] [PATCH 7/7] virtio-rng: Use DEFINE_PROP_LINK, Fam Zheng, 2017/06/28