From nobody Mon Feb 9 16:34:19 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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 170.10.129.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=1631704074; cv=none; d=zohomail.com; s=zohoarc; b=Y9WkRcsbWFlLqxoIGLFYZqxPiZRFWRyBcaUorITFQHpB0mY+Evapm3LN/l/2xCRwkd9Yq0V4us81g5zRNOzSe/biGeW96zKQdwwnPngcmXfXkISphQC353SUMb3cZ8pF296EEnew8oPlsuRY96rJHJIYxyP1oEdaizdQqD1L/tY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1631704074; 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=T+Yjj+NoKH6kC4ZAbwd8Fe4/J4Fyp2nujwbtXboYh5A=; b=MnQERpR8CmpTfMtZGBGHuxLgRm+t7nGAWQjyGJ/MdIgeC2lasFKaFymjr4jpcLd5myhYvJ/riuTQO5GSWlEWvRegFhNvtweVGhwC+oGGHxygug01ldOLxhGc07wB4MgFYwzL8Ka5BqlYYtj+wc0tNT5ZTqYji2CuDjxF/n2Nk28= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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 [170.10.129.124]) by mx.zohomail.com with SMTPS id 1631704074336953.0172090431146; Wed, 15 Sep 2021 04:07:54 -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-51-ujVgZsZlPSGoVnwfNDM-Eg-1; Wed, 15 Sep 2021 07:07:52 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E7071100CCC3; Wed, 15 Sep 2021 11:07: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 CD7B260622; Wed, 15 Sep 2021 11:07:46 +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 9F7A41805989; Wed, 15 Sep 2021 11:07:46 +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 18FB7jc1029038 for ; Wed, 15 Sep 2021 07:07:45 -0400 Received: by smtp.corp.redhat.com (Postfix) id A9206100164C; Wed, 15 Sep 2021 11:07:45 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.43.2.78]) by smtp.corp.redhat.com (Postfix) with ESMTP id 33A4F1001281 for ; Wed, 15 Sep 2021 11:07:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631704073; 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=T+Yjj+NoKH6kC4ZAbwd8Fe4/J4Fyp2nujwbtXboYh5A=; b=Kt97mIVp3rcpX4B2VY6peKScIM6yBCuDpCWlgwQC+M47O8OTGDNe75iiW2uKIH4FS2R53p MBmHkyqwhUCya6AcKWmrH2G7MDuEdYu5m+1AVT9N+ydxAJ5+wbJeP0X8E4KA/AM4PMtvOw fh7uyVZn2LthZ46gpNAPQ0HhNLi8aio= X-MC-Unique: ujVgZsZlPSGoVnwfNDM-Eg-1 From: Kristina Hanicova To: libvir-list@redhat.com Subject: [PATCH v2 3/5] api: add virNetworkCreateFlags Date: Wed, 15 Sep 2021 13:07:29 +0200 Message-Id: <9600685f3d369ab846c619a466441cee26c7cdba.1631703632.git.khanicov@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 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.13 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: 1631704076194100005 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 e505c3eb7e..398d8fccd4 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 ee53b9f2c5..883dd40f6b 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