diff options
author | Marc-André Lureau | 2020-01-10 16:30:27 +0100 |
---|---|---|
committer | Paolo Bonzini | 2020-01-24 20:59:14 +0100 |
commit | 9941d37b4d159da0f18edbd2bd7b9fd19484a286 (patch) | |
tree | efb756984c29fc356d739fc333b8347648ce4171 /include/qom | |
parent | object: rename link "child" to "target" (diff) | |
download | qemu-9941d37b4d159da0f18edbd2bd7b9fd19484a286.tar.gz qemu-9941d37b4d159da0f18edbd2bd7b9fd19484a286.tar.xz qemu-9941d37b4d159da0f18edbd2bd7b9fd19484a286.zip |
object: add direct link flag
Allow the link property to hold the pointer to the target, instead of
indirectly through another variable.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20200110153039.1379601-15-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qom')
-rw-r--r-- | include/qom/object.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/qom/object.h b/include/qom/object.h index a163adc7c5..24d6ebe675 100644 --- a/include/qom/object.h +++ b/include/qom/object.h @@ -1511,6 +1511,9 @@ void object_property_add_child(Object *obj, const char *name, typedef enum { /* Unref the link pointer when the property is deleted */ OBJ_PROP_LINK_STRONG = 0x1, + + /* private */ + OBJ_PROP_LINK_DIRECT = 0x2, } ObjectPropertyLinkFlags; /** |