From nobody Sun Feb 8 07:52:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 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=1589398287; cv=none; d=zohomail.com; s=zohoarc; b=nsGzSocyak3IirA7R9NwdE3WTglO7JE4r9pHdpDG++fTk4i+wNyWwqqjzBwBp/gva8dRfcHX8y7/YTVsDHVny/8O148DOYmrnonqxfKDkNHrzzdee+ng6niAEOrXN9bFeqNHYVTRLY3hGb45nEjf2ZB4yj0Jtz9lI0w23O2Fa/Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589398287; 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=nPYRQ7jObmPc5UxjJMA5oQTzuNj/FuCNxknRvxyEZe8=; b=PB44/Cid3NBxI1c5gxb8BjJ3k60dBvLdtjSO64THVdD4fvrrDEmD7FnWJS2MKryjNj4fHUb9cEsDfngJgVGJ33p6YqFZ8dTo4oPtF6laZRQeA+Pl9lzMHSYJGsw8IqCDyofXrwn3AWxUgOXwmGb8BhqXePuOJxclSjeuz8UES84= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 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-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1589398287840285.2769755445279; Wed, 13 May 2020 12:31:27 -0700 (PDT) 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-263-jSv1R97_PdWER4b3WkOjLA-1; Wed, 13 May 2020 15:31:23 -0400 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 661EB19067E8; Wed, 13 May 2020 19:31:16 +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 461B761F50; Wed, 13 May 2020 19:31:16 +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 18F424E44C; Wed, 13 May 2020 19:31:16 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 04DJVC6A021952 for ; Wed, 13 May 2020 15:31:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id D47312156A4F; Wed, 13 May 2020 19:31:12 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B41DD2156A4B for ; Wed, 13 May 2020 19:31:09 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (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 AC687916103 for ; Wed, 13 May 2020 19:31:09 +0000 (UTC) Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-259-i0ACn0uDPJ-Yn48aWRcSkQ-1; Wed, 13 May 2020 15:31:07 -0400 Received: by mail-qv1-f45.google.com with SMTP id z5so503779qvw.4 for ; Wed, 13 May 2020 12:31:06 -0700 (PDT) Received: from rekt.ibmuc.com ([2804:431:c7c7:fbf2:bc5e:c314:af31:7070]) by smtp.gmail.com with ESMTPSA id n20sm478880qtk.89.2020.05.13.12.31.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2020 12:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589398285; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=nPYRQ7jObmPc5UxjJMA5oQTzuNj/FuCNxknRvxyEZe8=; b=gaJ6zuh72MzQI99NU+egPCJHPujRmpewGl+oR/4nCqVSBTvLXF5Vr6zMRsgd3Aw33cBcWi /O70OO/Ta5grgTBNmrAjoIarhdDgxggfkBnLK0Okh2eQjkEdECyOTWdDTXmgOAVSwCItUX je94d+FQTPg22WlFM/jc3FjvstIUHMk= X-MC-Unique: jSv1R97_PdWER4b3WkOjLA-1 X-MC-Unique: i0ACn0uDPJ-Yn48aWRcSkQ-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=nPYRQ7jObmPc5UxjJMA5oQTzuNj/FuCNxknRvxyEZe8=; b=MnTLxHCL8sqjiArfyO6bl6H9DxgXy8PMoTJZy5uoBsnwpZUsOY+iU64iLVnWqTPfWR mM/enQ8StGbBOFuqjU4LxqiOc/fXeGF9Zff8nG0WsVLwZUDRglrOLXWwuY/cXLkfcau+ W6wScq8MTsM1I7PCjq6DdFqjfxXKE2zVKW8bTM02nt2AdEaMH3uulgwCao5w/+4v9Cyy lwqDa1wb4QfFTSDOuqru3gRCPw3JMCmF0Zq2hh8BD3sMQ+Nmd6yV/V0JK6Mqmzu9tdU6 tZVNWkiR5IKeFQbHREz9cmeZuOpudgkaCYTGGC7M8wGN1gxVDM7mKuJvYPBYLTdH5cAM I7CQ== X-Gm-Message-State: AOAM531qI2hHNH4bxeuN1BRiXfifUOHY6Mk75V4eLv6tX1ack4nDzpIA LqtGzSADCkvPZFQuEHu2fbaLJmwQ X-Google-Smtp-Source: ABdhPJy9nuyimtV1C9l9q7o1DTyhuYPqGi1ATE2Iv1ctTBOTTKR7uYxQEv+RfTkSVNylZnXHb/Jg2g== X-Received: by 2002:ad4:4f01:: with SMTP id fb1mr1305778qvb.162.1589398266348; Wed, 13 May 2020 12:31:06 -0700 (PDT) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH v3 4/9] conf, domain: register AUTOPTR_CLEANUP_FUNC for virDomainTPMDef Date: Wed, 13 May 2020 16:30:39 -0300 Message-Id: <20200513193044.3401170-5-danielhb413@gmail.com> In-Reply-To: <20200513193044.3401170-1-danielhb413@gmail.com> References: <20200513193044.3401170-1-danielhb413@gmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza , stefanb@linux.ibm.com, david@gibson.dropbear.id.au 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 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Next patch will make use of g_autoptr() with virDomainTPMDefPtr. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Stefan Berger --- src/conf/domain_conf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 8f178ade34..60dbba3b19 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -3028,6 +3028,7 @@ virDomainDeviceInfoPtr virDomainDeviceGetInfo(virDoma= inDeviceDefPtr device); void virDomainDeviceSetData(virDomainDeviceDefPtr device, void *devicedata); void virDomainTPMDefFree(virDomainTPMDefPtr def); +G_DEFINE_AUTOPTR_CLEANUP_FUNC(virDomainTPMDef, virDomainTPMDefFree); =20 typedef int (*virDomainDeviceInfoCallback)(virDomainDefPtr def, virDomainDeviceDefPtr dev, --=20 2.26.2