From patchwork Mon Dec 12 17:31:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Patchwork-Id: 705118 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tcrnV6YSTz9sxS for ; Tue, 13 Dec 2016 05:23:42 +1100 (AEDT) Received: from localhost ([::1]:60938 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGVGH-0005VR-0D for incoming@patchwork.ozlabs.org; Mon, 12 Dec 2016 13:23:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGUSd-00048W-5k for qemu-devel@nongnu.org; Mon, 12 Dec 2016 12:32:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGUSc-0000zV-Ac for qemu-devel@nongnu.org; Mon, 12 Dec 2016 12:32:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36022) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cGUSc-0000yB-5z; Mon, 12 Dec 2016 12:32:22 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6316761BBB; Mon, 12 Dec 2016 17:32:21 +0000 (UTC) Received: from localhost (ovpn-116-27.ams2.redhat.com [10.36.116.27]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uBCHWIG6030114; Mon, 12 Dec 2016 12:32:20 -0500 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= To: qemu-devel@nongnu.org Date: Mon, 12 Dec 2016 20:31:51 +0300 Message-Id: <20161212173151.18092-3-marcandre.lureau@redhat.com> In-Reply-To: <20161212173151.18092-1-marcandre.lureau@redhat.com> References: <20161212173151.18092-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 12 Dec 2016 17:32:21 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 3/3] object: make some funcs static X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" There is no need to have those functions as public API. Signed-off-by: Marc-André Lureau --- qom/object.c | 4 ++-- include/qom/object.h | 24 ------------------------ 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/qom/object.c b/qom/object.c index 7a05e35ed9..eb3d0f64e4 100644 --- a/qom/object.c +++ b/qom/object.c @@ -351,7 +351,7 @@ static void object_post_init_with_type(Object *obj, TypeImpl *ti) } } -void object_initialize_with_type(void *data, size_t size, TypeImpl *type) +static void object_initialize_with_type(void *data, size_t size, TypeImpl *type) { Object *obj = data; @@ -467,7 +467,7 @@ static void object_finalize(void *data) } } -Object *object_new_with_type(Type type) +static Object *object_new_with_type(Type type) { Object *obj; diff --git a/include/qom/object.h b/include/qom/object.h index c5456db05d..e9791a210e 100644 --- a/include/qom/object.h +++ b/include/qom/object.h @@ -586,18 +586,6 @@ struct InterfaceClass */ Object *object_new(const char *typename); -/** - * object_new_with_type: - * @type: The type of the object to instantiate. - * - * This function will initialize a new object using heap allocated memory. - * The returned object has a reference count of 1, and will be freed when - * the last reference is dropped. - * - * Returns: The newly allocated and instantiated object. - */ -Object *object_new_with_type(Type type); - /** * object_new_with_props: * @typename: The name of the type of the object to instantiate. @@ -726,18 +714,6 @@ int object_set_propv(Object *obj, Error **errp, va_list vargs); -/** - * object_initialize_with_type: - * @data: A pointer to the memory to be used for the object. - * @size: The maximum size available at @data for the object. - * @type: The type of the object to instantiate. - * - * This function will initialize an object. The memory for the object should - * have already been allocated. The returned object has a reference count of 1, - * and will be finalized when the last reference is dropped. - */ -void object_initialize_with_type(void *data, size_t size, Type type); - /** * object_initialize: * @obj: A pointer to the memory to be used for the object.