Signed-off-by: Fam Zheng <f...@redhat.com> --- 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