aboutsummaryrefslogtreecommitdiff
path: root/include/qom/object.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-01-10 19:30:26 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-01-24 20:59:14 +0100
commit36854207f093c60eecde377b2ec5d20b8614460c (patch)
tree7678c3ceca51a86e3216d52e661d9d2c3a2f06b5 /include/qom/object.h
parent8770bafdc96727a7b87216221ec81c792b8b2857 (diff)
object: rename link "child" to "target"
A child property is a different kind of property. Let's use "target" for the link target. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20200110153039.1379601-14-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qom/object.h')
-rw-r--r--include/qom/object.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/qom/object.h b/include/qom/object.h
index 82cf20f441..a163adc7c5 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -1528,7 +1528,7 @@ void object_property_allow_set_link(const Object *, const char *,
* @obj: the object to add a property to
* @name: the name of the property
* @type: the qobj type of the link
- * @child: a pointer to where the link object reference is stored
+ * @targetp: a pointer to where the link object reference is stored
* @check: callback to veto setting or NULL if the property is read-only
* @flags: additional options for the link
* @errp: if an error occurs, a pointer to an area to store the error
@@ -1553,7 +1553,7 @@ void object_property_allow_set_link(const Object *, const char *,
* modified.
*/
void object_property_add_link(Object *obj, const char *name,
- const char *type, Object **child,
+ const char *type, Object **targetp,
void (*check)(const Object *obj, const char *name,
Object *val, Error **errp),
ObjectPropertyLinkFlags flags,