From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdkBY-0005vE-Gq for qemu-devel@nongnu.org; Tue, 05 Nov 2013 12:13:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdkBS-0002GE-I5 for qemu-devel@nongnu.org; Tue, 05 Nov 2013 12:13:00 -0500 Received: from cantor2.suse.de ([195.135.220.15]:33683 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdkBS-0002G7-8v for qemu-devel@nongnu.org; Tue, 05 Nov 2013 12:12:54 -0500 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 5 Nov 2013 18:12:51 +0100 Message-Id: <1383671571-18496-1-git-send-email-afaerber@suse.de> In-Reply-To: <1383671513-18370-1-git-send-email-afaerber@suse.de> References: <1383671513-18370-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL v3 52/57] qom: Fix pointer to int property helpers' documentation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= , "Michael S. Tsirkin" From: "Michael S. Tsirkin" Relocate to alongside the other object_property_add_* helpers while at it= . Signed-off-by: Andreas F=C3=A4rber --- include/qom/object.h | 73 +++++++++++++++++++++++++++++++++++++---------= ------ 1 file changed, 52 insertions(+), 21 deletions(-) diff --git a/include/qom/object.h b/include/qom/object.h index d02172a..a275db2 100644 --- a/include/qom/object.h +++ b/include/qom/object.h @@ -795,27 +795,6 @@ void object_property_add(Object *obj, const char *na= me, const char *type, void object_property_del(Object *obj, const char *name, Error **errp); =20 /** - * object_property_add_uint8_ptr: - * object_property_add_uint16_ptr: - * object_property_add_uint32_ptr: - * object_property_add_uint64_ptr: - * @obj: the object to add a property to - * @name: the name of the property - * @v: pointer to value - * - * Add an integer property in memory. This function will add a - * property of the appropriate type. - */ -void object_property_add_uint8_ptr(Object *obj, const char *name, - const uint8_t *v, Error **errp); -void object_property_add_uint16_ptr(Object *obj, const char *name, - const uint16_t *v, Error **errp); -void object_property_add_uint32_ptr(Object *obj, const char *name, - const uint32_t *v, Error **errp); -void object_property_add_uint64_ptr(Object *obj, const char *name, - const uint64_t *v, Error **Errp); - -/** * object_property_find: * @obj: the object * @name: the name of the property @@ -1134,6 +1113,58 @@ void object_property_add_bool(Object *obj, const c= har *name, Error **errp); =20 /** + * object_property_add_uint8_ptr: + * @obj: the object to add a property to + * @name: the name of the property + * @v: pointer to value + * @errp: if an error occurs, a pointer to an area to store the error + * + * Add an integer property in memory. This function will add a + * property of type 'uint8'. + */ +void object_property_add_uint8_ptr(Object *obj, const char *name, + const uint8_t *v, Error **errp); + +/** + * object_property_add_uint16_ptr: + * @obj: the object to add a property to + * @name: the name of the property + * @v: pointer to value + * @errp: if an error occurs, a pointer to an area to store the error + * + * Add an integer property in memory. This function will add a + * property of type 'uint16'. + */ +void object_property_add_uint16_ptr(Object *obj, const char *name, + const uint16_t *v, Error **errp); + +/** + * object_property_add_uint32_ptr: + * @obj: the object to add a property to + * @name: the name of the property + * @v: pointer to value + * @errp: if an error occurs, a pointer to an area to store the error + * + * Add an integer property in memory. This function will add a + * property of type 'uint32'. + */ +void object_property_add_uint32_ptr(Object *obj, const char *name, + const uint32_t *v, Error **errp); + +/** + * object_property_add_uint64_ptr: + * @obj: the object to add a property to + * @name: the name of the property + * @v: pointer to value + * @errp: if an error occurs, a pointer to an area to store the error + * + * Add an integer property in memory. This function will add a + * property of type 'uint64'. + */ +void object_property_add_uint64_ptr(Object *obj, const char *name, + const uint64_t *v, Error **Errp); + +/** * object_child_foreach: * @obj: the object whose children will be navigated * @fn: the iterator function to be called --=20 1.8.1.4