From nobody Sat Feb 7 09:59:19 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1612180032; cv=none; d=zohomail.com; s=zohoarc; b=MfoUYvh4NoEF4/ONlRrkz5IPgNcPNXL02POhv8Pvrnn3QSFfI6/my9Al/S9WoT/jEcSAoVpyNWv4MD9yR+IPT4lmuookagjDEcFL8zdlYmbFrrovPFoFIukndo2SByHx86pDWbGLMO0HqW/eDpaP0KCk6cdRCe/ymJxLV2lv/iQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612180032; h=Content-Type:Content-Transfer-Encoding:Cc: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=lF26DglqSWNM362vFvmYpPxa4FtAyY8HQO+p/Le+gn4=; b=M5F/BTKR/kyE3eZNXjT5/lKFNFUh4t8ymqBAcuuYRT6ZbJKHJ5QA8fLruh9waGiaFN+AWuLPcPtLaOhXeH2xQe0UdSnjaevp+RY9cVLoqjW+62LAXksuYTMPc3DbpjFtPKYCeoFA0EGrR3ujXSL2Li3J4zerbv8vr9o3LABSBX8= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1612180032229701.0444273308383; Mon, 1 Feb 2021 03:47:12 -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-389-sITzWMP3PzKme247jkZDEQ-1; Mon, 01 Feb 2021 06:47:08 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CD250800D62; Mon, 1 Feb 2021 11:47:02 +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 7C7526A8E5; Mon, 1 Feb 2021 11:47:01 +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 D96BA4A7C6; Mon, 1 Feb 2021 11:46:59 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 111Bkw0F005707 for ; Mon, 1 Feb 2021 06:46:58 -0500 Received: by smtp.corp.redhat.com (Postfix) id 869A1111144C; Mon, 1 Feb 2021 11:46:58 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8319410031E5 for ; Mon, 1 Feb 2021 11:46:56 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0735C805B7A for ; Mon, 1 Feb 2021 11:46:56 +0000 (UTC) Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-39-tUR_MwfEMwat6QkSF1tqwg-1; Mon, 01 Feb 2021 06:46:54 -0500 Received: by mail-qk1-f170.google.com with SMTP id k193so15831905qke.6 for ; Mon, 01 Feb 2021 03:46:53 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c6:6df1:6267:881f:cc79:a1f7]) by smtp.gmail.com with ESMTPSA id t6sm13671374qti.2.2021.02.01.03.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 03:46:52 -0800 (PST) X-MC-Unique: sITzWMP3PzKme247jkZDEQ-1 X-MC-Unique: tUR_MwfEMwat6QkSF1tqwg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lF26DglqSWNM362vFvmYpPxa4FtAyY8HQO+p/Le+gn4=; b=tr7qYUPI3j7i4bIaq/Z23brzZT1JBYiY2CcOyWY7CDMBm5to9GKaQRz1PZLRcNvdG6 89Tt2UAi+wqZdxw2i0huPYLx2SiRaWMpV5bnDN5aeZzo6OxS2yynOGrzhsE4wnJ5WGK+ pSqdyseQqqLyiTiWhZUCXRkFuW9tNvA65dc/G6d1GNYm4e+uQQ4q/2MZxpAjfqTcJkqp +0cekWQOh3T/QWwv98oAhh/fs6kuAHs19+d/cK5T3gktCGfE/EOuH20zcG68pUgEEvpX 9AzKcIwOO/Msbw3tGERjEelIGayrLZHWw3+bduqzDNSb3CV+3VqOv+y8CH57F8ENMcxV xRtw== X-Gm-Message-State: AOAM530RQHiuCj5i6r9MVdQDhJXbbW86EnIgy7yQba0NV8nHqkQNWwuM X5+mZWVUDy4UKj7G5hkRmEZP8GeAOT4= X-Google-Smtp-Source: ABdhPJwh3muG0NdExXTHpfY0A8mcaqNRt7gZjcLkkD4RVf4SithecCrJIZf9c4VpIvJjhlTYQjLG+A== X-Received: by 2002:a37:8dc7:: with SMTP id p190mr15357840qkd.308.1612180013330; Mon, 01 Feb 2021 03:46:53 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH 2/9] datatypes.h: register AUTOPTR_CLEANUP_FUNC for virNodeDevicePtr Date: Mon, 1 Feb 2021 08:46:35 -0300 Message-Id: <20210201114642.1947595-3-danielhb413@gmail.com> In-Reply-To: <20210201114642.1947595-1-danielhb413@gmail.com> References: <20210201114642.1947595-1-danielhb413@gmail.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza 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.15 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 Content-Type: text/plain; charset="utf-8" Next patch will use g_autoptr() with virNodeDevicePtr for cleanups. Signed-off-by: Daniel Henrique Barboza --- src/datatypes.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/datatypes.h b/src/datatypes.h index ade3779e43..7a88aba0df 100644 --- a/src/datatypes.h +++ b/src/datatypes.h @@ -707,6 +707,8 @@ struct _virNodeDevice { char *parentName; /* parent device name */ }; =20 +G_DEFINE_AUTOPTR_CLEANUP_FUNC(virNodeDevice, virObjectUnref); + /** * _virSecret: * --=20 2.26.2