From nobody Mon Feb 9 17:58:20 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1588765381; cv=none; d=zohomail.com; s=zohoarc; b=HeL+u75N0EmvzmUo1T3IMdNHg42VXdwtNI7aT5bI23xqD8QzZZ/nWuClHaybE9f9C73ODyjK/FV2tKfOlcHOC2zPXYvfNj27d1RIG+yv5V7IdxqWihDU55WSLU4YuBqXHw5uLi9qc8XCPd5Xeozh4LkALrWAQrM4aaMzzarKKIM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588765381; 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=nr2pwrNgydJIWA4m45k9lwiYd5kmERgP+medAX9O0ss=; b=PeaaI20jS/lXvWHsjn9amAY5ewJyK984vrKVfnPEzkpXxKau5tVzW8tos7QSnYro/w8Rp3OvaM6Jh/oysxfLFvIvpTQMsqh7hjXCZh4vrXysnYK5xOWLFZ7AK6kzSt9RFqL4JjyZ7tiUVMLut0eaeQvVd/+EimC4wwEOgJ0i58k= 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-2.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1588765381186947.3468261868642; Wed, 6 May 2020 04:43:01 -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-43-xQVPHpjnPwWzcmBNjPfMvw-1; Wed, 06 May 2020 07:42:57 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2CC57345CB; Wed, 6 May 2020 11:42:46 +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 08E8B60BF4; Wed, 6 May 2020 11:42:45 +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 AD3E31809561; Wed, 6 May 2020 11:42:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 046BgWZT026769 for ; Wed, 6 May 2020 07:42:33 -0400 Received: by smtp.corp.redhat.com (Postfix) id EEF861002389; Wed, 6 May 2020 11:42:32 +0000 (UTC) Received: from ibm-p8-15-fsp.mgmt.pnr.lab.eng.rdu2.redhat.com (unknown [10.40.195.180]) by smtp.corp.redhat.com (Postfix) with ESMTP id 34E2010013D9; Wed, 6 May 2020 11:42:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588765379; 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=nr2pwrNgydJIWA4m45k9lwiYd5kmERgP+medAX9O0ss=; b=QJgGA45mcGG4WTtngGEXEvWIbe5KEBI6Vd0VBwOCmzyc6GtRac67ato8V5o/ZpSgzSLJff y60PkLsbI0qNxEo069JaCRQiiRt8kCZHyw9aOgnlU3CUzjNUMLOXirlNqtEz5UD/kFkHju dvQvu8j4xJrjw91Kf2aSiwNqTcsqbc0= X-MC-Unique: xQVPHpjnPwWzcmBNjPfMvw-1 From: Pavel Mores To: libvir-list@redhat.com Subject: [libvirt PATCH v2 04/10] conf: rename virDomainMomentFindLeaf() to virDomainMomentObjListFindLeaf() Date: Wed, 6 May 2020 13:42:20 +0200 Message-Id: <20200506114226.2538196-5-pmores@redhat.com> In-Reply-To: <20200506114226.2538196-1-pmores@redhat.com> References: <20200506114226.2538196-1-pmores@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Cc: Pavel Mores 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.12 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" We'll need the original name for a function that finds leaf for a single virDomainMomentObj. The new name properly advertises that the function actually works on a virDomainMomentObjList, as some (but not all) of existing functions operating on lists do. Signed-off-by: Pavel Mores Reviewed-by: Peter Krempa --- src/conf/virdomaincheckpointobjlist.c | 2 +- src/conf/virdomainmomentobjlist.c | 2 +- src/conf/virdomainmomentobjlist.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conf/virdomaincheckpointobjlist.c b/src/conf/virdomainchec= kpointobjlist.c index a4942ea706..2df1c426a2 100644 --- a/src/conf/virdomaincheckpointobjlist.c +++ b/src/conf/virdomaincheckpointobjlist.c @@ -186,7 +186,7 @@ virDomainCheckpointUpdateRelations(virDomainCheckpointO= bjListPtr checkpoints, int ret =3D virDomainMomentUpdateRelations(checkpoints->base); =20 if (ret =3D=3D 0) - *leaf =3D virDomainMomentFindLeaf(checkpoints->base); + *leaf =3D virDomainMomentObjListFindLeaf(checkpoints->base); return ret; } =20 diff --git a/src/conf/virdomainmomentobjlist.c b/src/conf/virdomainmomentob= jlist.c index 18dbd434fb..41e887ba18 100644 --- a/src/conf/virdomainmomentobjlist.c +++ b/src/conf/virdomainmomentobjlist.c @@ -588,7 +588,7 @@ virDomainMomentCheckCycles(virDomainMomentObjListPtr li= st, =20 /* If there is exactly one leaf node, return that node. */ virDomainMomentObjPtr -virDomainMomentFindLeaf(virDomainMomentObjListPtr list) +virDomainMomentObjListFindLeaf(virDomainMomentObjListPtr list) { virDomainMomentObjPtr moment =3D &list->metaroot; =20 diff --git a/src/conf/virdomainmomentobjlist.h b/src/conf/virdomainmomentob= jlist.h index 75198909ba..cab51edbc4 100644 --- a/src/conf/virdomainmomentobjlist.h +++ b/src/conf/virdomainmomentobjlist.h @@ -121,4 +121,4 @@ int virDomainMomentUpdateRelations(virDomainMomentObjLi= stPtr moments); int virDomainMomentCheckCycles(virDomainMomentObjListPtr list, virDomainMomentDefPtr def, const char *domname); -virDomainMomentObjPtr virDomainMomentFindLeaf(virDomainMomentObjListPtr li= st); +virDomainMomentObjPtr virDomainMomentObjListFindLeaf(virDomainMomentObjLis= tPtr list); --=20 2.24.1