From nobody Sun Feb 8 19:59:38 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; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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=1629976935; cv=none; d=zohomail.com; s=zohoarc; b=OZ/4DJ4BVW4J8RZcej2mK/g3YfDE9H7a7J5+a/c0Yh08XI+3SZQLscf+495ApmKZb5l3/ScTIQsHAZGTbO07qHtvRaMh35B9mDQ3kVbFVfdXSmsom6P+IbPUhjZpIgJBmGYOro3TNjmK6xd4psgx0cpf6aS3gn6YECS7dBzdSSc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1629976935; 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=0WdplVH+JkdJt33IanYalD2jlOBPimdiSSk4H16cWY4=; b=c6hE1J95SlDp8KNCErCseVth9mGU32yqnM1mhhbo8mfIXVqFtQ1E6oH11qkzV9Rwk0YUND/QbR/X69PaJMWKndWep+AwNCL9WyeioqTqUpNKn6XnuS/djE6itci72iXb8J4TDkN0gLiqphFxf25ITkDtLRmvjdcNjVJbXTqY03Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) 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 1629976935077460.5629473580494; Thu, 26 Aug 2021 04:22:15 -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-575-xl2S-93mO9GdAu8wN_-eQQ-1; Thu, 26 Aug 2021 07:22:11 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id ED13F1082929; Thu, 26 Aug 2021 11:22:06 +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 F17685C1D5; Thu, 26 Aug 2021 11:22:05 +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 2A953181A0F7; Thu, 26 Aug 2021 11:22:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 17QBM1lw005565 for ; Thu, 26 Aug 2021 07:22:01 -0400 Received: by smtp.corp.redhat.com (Postfix) id A097019D9F; Thu, 26 Aug 2021 11:22:01 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.43.2.2]) by smtp.corp.redhat.com (Postfix) with ESMTP id 29B3519C59 for ; Thu, 26 Aug 2021 11:22:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629976933; 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=0WdplVH+JkdJt33IanYalD2jlOBPimdiSSk4H16cWY4=; b=HDprMemHmybaLhJT01OTaW5v6rMTrW4RG37Bt/Djsy9pD6VLop84L2y4CRoUFFRYdSdn4r HaSHoH5+i76BU/gxmGCEU96OCsbM/CMJ3nJPneh2A6j6ymp+Q3QvMhLrO0sebnBa+C6Ur8 XeUmZ2CkCARvIZZFa4Rl2cCeDGcxUik= X-MC-Unique: xl2S-93mO9GdAu8wN_-eQQ-1 From: Kristina Hanicova To: libvir-list@redhat.com Subject: [PATCH 3/6] api: add virNetworkCreateFlags Date: Thu, 26 Aug 2021 13:21:41 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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.79 on 10.5.11.16 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) X-ZM-MESSAGEID: 1629976936839100004 Content-Type: text/plain; charset="utf-8" Signed-off-by: Kristina Hanicova --- include/libvirt/libvirt-network.h | 4 ++++ src/libvirt-network.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/libvirt/libvirt-network.h b/include/libvirt/libvirt-ne= twork.h index 0be4d64b75..d8eaf83d93 100644 --- a/include/libvirt/libvirt-network.h +++ b/include/libvirt/libvirt-network.h @@ -113,6 +113,10 @@ virNetworkPtr virNetworkLookupByUUID = (virConnectPtr conn, virNetworkPtr virNetworkLookupByUUIDString (virConnectPtr con= n, const char *uuid); =20 +typedef enum { + VIR_NETWORK_CREATE_VALIDATE =3D 1 << 0, /* Validate the XML document a= gainst schema */ +} virNetworkCreateFlags; + /* * Create active transient network */ diff --git a/src/libvirt-network.c b/src/libvirt-network.c index 32ade1a2aa..33bb547a3c 100644 --- a/src/libvirt-network.c +++ b/src/libvirt-network.c @@ -431,7 +431,7 @@ virNetworkCreateXML(virConnectPtr conn, const char *xml= Desc) * virNetworkCreateXMLFlags: * @conn: pointer to the hypervisor connection * @xmlDesc: an XML description of the network - * @flags: extra flags; not used yet, so callers should always pass 0 + * @flags: bitwise-OR of virNetworkCreateFlags * * Create and start a new virtual network, based on an XML description * similar to the one returned by virNetworkGetXMLDesc() --=20 2.31.1