From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxGWO-0004xU-E9 for qemu-devel@nongnu.org; Mon, 21 Jan 2013 07:30:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxGWM-0006dh-Vw for qemu-devel@nongnu.org; Mon, 21 Jan 2013 07:30:40 -0500 Received: from mail-ea0-f181.google.com ([209.85.215.181]:50814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxGWM-0006dV-Q1 for qemu-devel@nongnu.org; Mon, 21 Jan 2013 07:30:38 -0500 Received: by mail-ea0-f181.google.com with SMTP id i13so1462915eaa.12 for ; Mon, 21 Jan 2013 04:30:38 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Mon, 21 Jan 2013 13:30:14 +0100 Message-Id: <1358771422-14282-5-git-send-email-pbonzini@redhat.com> In-Reply-To: <1358771422-14282-1-git-send-email-pbonzini@redhat.com> References: <1358771422-14282-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH v2 04/12] qom: document reference counting of link properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, afaerber@suse.de Signed-off-by: Paolo Bonzini --- include/qom/object.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/qom/object.h b/include/qom/object.h index 8e16ea8..5e8e528 100644 --- a/include/qom/object.h +++ b/include/qom/object.h @@ -1033,6 +1033,11 @@ void object_property_add_child(Object *obj, const char *name, * between objects. * * Links form the graph in the object model. + * + * Ownership of the pointer that @child points to is transferred to the + * link property. The reference count for *@child is + * managed by the property from after the function returns till the + * property is deleted with object_property_del(). */ void object_property_add_link(Object *obj, const char *name, const char *type, Object **child, -- 1.8.1