From nobody Tue Mar 3 04:56:06 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1770908738; cv=none; d=zohomail.com; s=zohoarc; b=jpyxf/7yq5fcqfRV3Vxhx8JjPibcp8cCmvx/YHRgI2HF1hfr+nlNudUTA5EGC7BRMPGXxNxVPHDhEcoLENSWHoIudv2eVl4TpTBV+2Qrkz/XVh1h4GETYg5cpx+OloQJclUpoC5cr0Srf0nU8fkALDe2gMJ4dYnmnr7QVszX9wg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770908738; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id:Cc; bh=ON5+tKs/U2uJ0aEfUSGd7/g5fSe85Qen/puVHsRAycs=; b=T2i0ll8Tn1mm+6nHuQaKSdyuftDVlqCVRPQyEYNTrtRq+P2WN8YLD1BgOvXYgIdrGdTAJaAl8YhyrNYNtL3pveFRdokIzS9hmBgn1i4rWIeEqulTcS/VJwxuFbtFbtRWtVFXVP8z4DPIWjV/kx7fwzsNRK1DZYtQXJDQJTyfP88= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1770908738376620.6469044543319; Thu, 12 Feb 2026 07:05:38 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id C3C453F292; Thu, 12 Feb 2026 10:05:37 -0500 (EST) Received: from [172.19.199.6] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id CE89045000; Thu, 12 Feb 2026 09:58:57 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 714A241AE4; Thu, 12 Feb 2026 09:58:51 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 774C744427 for ; Thu, 12 Feb 2026 08:53:05 -0500 (EST) Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-553-SPE5LwHNM2-GUdAuHahxVw-1; Thu, 12 Feb 2026 08:53:03 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0A0321955F14 for ; Thu, 12 Feb 2026 13:53:03 +0000 (UTC) Received: from moe (unknown [10.43.3.236]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 614FD180035A for ; Thu, 12 Feb 2026 13:53:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770904385; h=from:from: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; bh=ON5+tKs/U2uJ0aEfUSGd7/g5fSe85Qen/puVHsRAycs=; b=eECGax2GkF2/7Or5Y+OzNWmD4rOy2DXiVhqZxHrV6OI9MEVlkiQUL3nzewQ4OpPrOBoL54 3NTV25FoapVYD5ixL2LJ8zbH+AEJfvkX1GdeBW0uyBInU/ICs8yqJlqDpo7bvy3kp/WNpX wqwaDTzF8qBlMyQO5xnnUYjdWH6KIz8= X-MC-Unique: SPE5LwHNM2-GUdAuHahxVw-1 X-Mimecast-MFC-AGG-ID: SPE5LwHNM2-GUdAuHahxVw_1770904383 To: devel@lists.libvirt.org Subject: [PATCH v2 1/4] datatypes: Declare autofree func for virDomainInterface type Date: Thu, 12 Feb 2026 14:52:55 +0100 Message-ID: <7821550732c40ce40c30837e97031fa65b511878.1770904246.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: TyHQXiMymZgb8WEtAdMB3USMY_tXEeQCcHpU6e20HXU_1770904383 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: RYYVMTMQHMAH3THQL3HL4VQGN3O5QYSR X-Message-ID-Hash: RYYVMTMQHMAH3THQL3HL4VQGN3O5QYSR X-MailFrom: mprivozn@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Michal Privoznik via Devel Reply-To: Michal Privoznik X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1770908740957154100 Content-Type: text/plain; charset="utf-8"; x-default="true" From: Michal Privoznik The virDomainInterface type (struct _virDomainInterface) is defined in our public header and even has a public free function (virDomainInterfaceFree()). But in our code we will want to use automatic memory freeing for it. Hence, make appropriate declaration in datatypes.h. Signed-off-by: Michal Privoznik Reviewed-by: Peter Krempa --- src/datatypes.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/datatypes.h b/src/datatypes.h index c5a7ece786..5d543847e9 100644 --- a/src/datatypes.h +++ b/src/datatypes.h @@ -804,6 +804,8 @@ struct _virNWFilterBinding { =20 G_DEFINE_AUTOPTR_CLEANUP_FUNC(virNWFilterBinding, virObjectUnref); =20 +/* virDomainInterface is defined in the public API - libvirt-domain.h */ +G_DEFINE_AUTOPTR_CLEANUP_FUNC(virDomainInterface, virDomainInterfaceFree); =20 /* * Helper APIs for allocating new object instances --=20 2.52.0