From nobody Sun Feb 8 17:22:19 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1636986201; cv=none; d=zohomail.com; s=zohoarc; b=CxeB5pKd5zGC+CPbo5Gazjf29nFA6XgBoFkJHWZ80X6eUCdgkJwzSvEm2EOljARTvQ3hJ4ZtDKwpKSnIMloy3+rvdTmH6cjrMgcxEocHcDyNyMxG9+bNxE0cu/i5qZIuLIYgDMEu6SJyVVTsknw0nWfST1jF9OCJooUV/fZjybw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1636986201; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=XaQf6OPeh+80J4gS+2VTbU0fvr961Vk3LSxoshxGzts=; b=jNYapyZFN+TcFJwteSNDWOMrfI51qJoOdmBILQVODGPgQT6i8bKCmrUt+qZXa0zBvoheJn571Ig19BBItMI0WzkPgLpX7jQp2x0MK7Q03sninprrKvXi4Ka+otBQ+B7r6wekDVVWXJlL+DxHaB/sGE8RQdiyGxnObH1udjsCNiM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1636986201434296.18210375864146; Mon, 15 Nov 2021 06:23:21 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-201-euwcOEJ6NRCrdSObMOg05Q-1; Mon, 15 Nov 2021 09:23:16 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D03E510B7466; Mon, 15 Nov 2021 14:23:09 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B11106788C; Mon, 15 Nov 2021 14:23:09 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 874F61832DD2; Mon, 15 Nov 2021 14:23:09 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1AFEN7DG010106 for ; Mon, 15 Nov 2021 09:23:07 -0500 Received: by smtp.corp.redhat.com (Postfix) id 4605A5BB06; Mon, 15 Nov 2021 14:23:07 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9EF6D22719 for ; Mon, 15 Nov 2021 14:23:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636986200; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=XaQf6OPeh+80J4gS+2VTbU0fvr961Vk3LSxoshxGzts=; b=DsS1LAOF3AMLTn4oKcMIKEqQY628DxICavcKSi+/tr+Pt9xDKEvojsuB7+EtEXMC0R4fla kuQww9hG0cceFRCDp5qX9JZtmHW8TKi4DaLOe5Hjf9BwawUAcKBJmxd5MHf8hL0LHzGH2e 7zxQOUuMbOkwDmSOAt2R+mnN07EqgRg= X-MC-Unique: euwcOEJ6NRCrdSObMOg05Q-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 16/18] util: json: Remove virJSONValueObjectCreate(VArgs) Date: Mon, 15 Nov 2021 15:22:15 +0100 Message-Id: <2ff47dd66d42aa69ebc64d8d561b47db3e181608.1636986086.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1636986280461100001 Content-Type: text/plain; charset="utf-8" The functions were obsoleted by virJSONValueObjectAdd(VArgs) Signed-off-by: Peter Krempa --- src/libvirt_private.syms | 2 -- src/util/virjson.c | 24 ------------------------ src/util/virjson.h | 4 ---- 3 files changed, 30 deletions(-) diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index 9ee8fda25f..a7bc50a4d1 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -2561,8 +2561,6 @@ virJSONValueObjectAppendNumberUint; virJSONValueObjectAppendNumberUlong; virJSONValueObjectAppendString; virJSONValueObjectAppendStringPrintf; -virJSONValueObjectCreate; -virJSONValueObjectCreateVArgs; virJSONValueObjectDeflatten; virJSONValueObjectForeachKeyValue; virJSONValueObjectGet; diff --git a/src/util/virjson.c b/src/util/virjson.c index 8b3599e94f..dbc5b7840c 100644 --- a/src/util/virjson.c +++ b/src/util/virjson.c @@ -369,30 +369,6 @@ virJSONValueObjectAdd(virJSONValue **objptr, ...) } -int -virJSONValueObjectCreateVArgs(virJSONValue **obj, - va_list args) -{ - *obj =3D NULL; - - return virJSONValueObjectAddVArgs(obj, args); -} - - -int -virJSONValueObjectCreate(virJSONValue **obj, ...) -{ - va_list args; - int ret; - - va_start(args, obj); - ret =3D virJSONValueObjectCreateVArgs(obj, args); - va_end(args); - - return ret; -} - - void virJSONValueFree(virJSONValue *value) { diff --git a/src/util/virjson.h b/src/util/virjson.h index 0d8dad754d..361b0190e8 100644 --- a/src/util/virjson.h +++ b/src/util/virjson.h @@ -44,10 +44,6 @@ void virJSONValueHashFree(void *opaque); virJSONType virJSONValueGetType(const virJSONValue *value); -int virJSONValueObjectCreate(virJSONValue **obj, ...) - ATTRIBUTE_NONNULL(1) G_GNUC_NULL_TERMINATED; -int virJSONValueObjectCreateVArgs(virJSONValue **obj, va_list args) - ATTRIBUTE_NONNULL(1); int virJSONValueObjectAdd(virJSONValue **obj, ...) ATTRIBUTE_NONNULL(1) G_GNUC_NULL_TERMINATED; int virJSONValueObjectAddVArgs(virJSONValue **objptr, va_list args) --=20 2.31.1