From nobody Sun Feb 8 14:57:22 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 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=1571151818; cv=none; d=zoho.com; s=zohoarc; b=ZXNz18pBprV94CVne6LWKiiDXlzBv/NI9iVy+31Snp6XfPvh0/Crbpn8lPYMpJEU6l0EUcldvamRBuvYlfu2sRYPZoS2+Regte432LBAgr4yuCjaAIvz0aPHouqHQkV+ALXzpom6tumsLjRCXEyDlOUVcykuKJEskB5x3fvsguY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571151818; 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=5QdVgTPTkYMpyNsZNYSS73nXt+MDootzs8yRPI1Ll2A=; b=BrmQ8jo36K5hbTl1EjpLhlDg9EJ8AkMPjtp2rM78NREaHIWv6fNjbvoFLIbtWepmCUUccKL4TzNxzqs6zxEK3w/PUx/sZi9bLAB7zT5iIrImQsPg6/hJPNd5BE2vFAIZqPWiOoH0QcE0RlG1X+OPUS0wED+XaBJMXRwsgJud4uM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1571151818979462.1547029196071; Tue, 15 Oct 2019 08:03:38 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1D3C618C427D; Tue, 15 Oct 2019 15:03:37 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E41FE5D9E2; Tue, 15 Oct 2019 15:03:36 +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 999DC4EE70; Tue, 15 Oct 2019 15:03:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x9FF3SeR022791 for ; Tue, 15 Oct 2019 11:03:28 -0400 Received: by smtp.corp.redhat.com (Postfix) id 99FF060BE2; Tue, 15 Oct 2019 15:03:28 +0000 (UTC) Received: from icr.brq.redhat.com (unknown [10.43.2.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 223EB60C57 for ; Tue, 15 Oct 2019 15:03:27 +0000 (UTC) From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Date: Tue, 15 Oct 2019 17:03:13 +0200 Message-Id: <6e5f08189d66e3330191cd1de79ecaf59e6d8da5.1571151764.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 8/9] Delete virObjectAutoUnref 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: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.62]); Tue, 15 Oct 2019 15:03:37 +0000 (UTC) Signed-off-by: J=C3=A1n Tomko --- src/libvirt_private.syms | 1 - src/util/virobject.c | 14 -------------- src/util/virobject.h | 15 --------------- 3 files changed, 30 deletions(-) diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index 7d62df8086..0da02bb8bd 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -2636,7 +2636,6 @@ virClassForObjectRWLockable; virClassIsDerivedFrom; virClassName; virClassNew; -virObjectAutoUnref; virObjectFreeCallback; virObjectFreeHashData; virObjectIsClass; diff --git a/src/util/virobject.c b/src/util/virobject.c index 33feeb659a..c5363308d8 100644 --- a/src/util/virobject.c +++ b/src/util/virobject.c @@ -367,20 +367,6 @@ virObjectUnref(void *anyobj) } =20 =20 -/** - * virObjectAutoUnref: - * - * Helper used by VIR_AUTOUNREF - */ -void -virObjectAutoUnref(void *objptr) -{ - virObjectPtr *obj =3D objptr; - virObjectUnref(*obj); - *obj =3D NULL; -} - - /** * virObjectRef: * @anyobj: any instance of virObjectPtr diff --git a/src/util/virobject.h b/src/util/virobject.h index 773a009f5e..7cb3457021 100644 --- a/src/util/virobject.h +++ b/src/util/virobject.h @@ -109,21 +109,6 @@ virObjectNew(virClassPtr klass) bool virObjectUnref(void *obj); =20 -void -virObjectAutoUnref(void *objptr); - -/** - * VIR_AUTOUNREF: - * @type: type of an virObject subclass to be unref'd automatically - * - * DEPRECATED: Use g_autoptr(type) instead - * - * Declares a variable of @type which will be automatically unref'd when - * control goes out of the scope. - */ -#define VIR_AUTOUNREF(type) \ - __attribute__((cleanup(virObjectAutoUnref))) type - G_DEFINE_AUTOPTR_CLEANUP_FUNC(virObject, virObjectUnref); =20 void * --=20 2.19.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list