From nobody Mon Nov 25 22:35:07 2024 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1594156324; cv=none; d=zohomail.com; s=zohoarc; b=DXiwppiclS/TDx97eH/fzCIr8MMIajPiE7f9Co2Vm1Si53Jed3YFHLQUCcpLEpQE2qhnhlqHrh2mODvX1wlCujvaNlEiw6tDzfIZo+pnyy+HzMBB4zai5llmjnu0rolY48wPyrgZY3e3GRqkJwf7wymrL0R7CaFbntVD7BeP3SY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594156324; 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=AbEy0OfA1YOPc5VROaLsacoUK0XQEKy0TlumLtVHc10=; b=H6vDwdN1K4MHxCdWfl5Pjder/HYXTc46XGPGGIELZaNads0selZtEq809eM96u3d5AsZub6vxlRVmCQ4pliiSghVdbnZ1cX7NdE9s5U87cdtKKORxMqnruqiswGdDRY3Qf7urlsbjQvXdfRMty5OdaTM+V6OM++hhnQePR5J7Hw= 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=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1594156324786775.2176557169149; Tue, 7 Jul 2020 14:12:04 -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-395-kvzQhEfvPkOtIZCTek3u7Q-1; Tue, 07 Jul 2020 17:12:01 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CD747EC1A3; Tue, 7 Jul 2020 21:11:55 +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 56D691A7D8; Tue, 7 Jul 2020 21:11:55 +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 0236D1809547; Tue, 7 Jul 2020 21:11:55 +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 067L8OY6007938 for ; Tue, 7 Jul 2020 17:08:24 -0400 Received: by smtp.corp.redhat.com (Postfix) id 60B61797E0; Tue, 7 Jul 2020 21:08:24 +0000 (UTC) Received: from vhost2.laine.org (ovpn-112-194.phx2.redhat.com [10.3.112.194]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1824479220 for ; Tue, 7 Jul 2020 21:08:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594156323; 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=AbEy0OfA1YOPc5VROaLsacoUK0XQEKy0TlumLtVHc10=; b=Z7gIwfzLBo+QruivZAMCtgdIvstMVXMtHRNoeXv7LqpwOqiNaewM6dkRXuzpI71Kk/cN3j HD9rz/Ulf4b+Iu6N9ZigJP1lDFZrflk+iBTy4v907sXCySsRokGinzxWxcCWtvkYBfhJ5S lTzSl3vjRRrvYC9L9mNSoIVDj3m8uq0= X-MC-Unique: kvzQhEfvPkOtIZCTek3u7Q-1 From: Laine Stump To: libvir-list@redhat.com Subject: [libvirt PATCH v2 03/15] define g_autoptr cleanup function for virNetworkDHCPLease Date: Tue, 7 Jul 2020 17:08:03 -0400 Message-Id: <20200707210815.1797463-4-laine@redhat.com> In-Reply-To: <20200707210815.1797463-1-laine@redhat.com> References: <20200707210815.1797463-1-laine@redhat.com> 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.84 on 10.5.11.23 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) Content-Type: text/plain; charset="utf-8" virNetworkDHCPLease and virNetworkDHCPLeaseFree() are declared in the public API file libvirt-network.h, and we can't pollute that with glib macro invocations, so put this in src/datatypes.h next to the other virNetwork items. Signed-off-by: Laine Stump Reviewed-by: J=C3=A1n Tomko --- src/datatypes.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/datatypes.h b/src/datatypes.h index d58429ad6c..ade3779e43 100644 --- a/src/datatypes.h +++ b/src/datatypes.h @@ -635,6 +635,8 @@ struct _virNetworkPort { =20 G_DEFINE_AUTOPTR_CLEANUP_FUNC(virNetworkPort, virObjectUnref); =20 +/* virNetworkDHCPLease is defined in the public API - libvirt-network.h */ +G_DEFINE_AUTOPTR_CLEANUP_FUNC(virNetworkDHCPLease, virNetworkDHCPLeaseFree= ); =20 /** * _virInterface: --=20 2.25.4