From nobody Mon Feb 9 04:15:23 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=1629737529; cv=none; d=zohomail.com; s=zohoarc; b=N1J4mKuVZjuIdeNygB8BnXv2HH6ZvnrgdmkDL7uU8BeU2oE5DkCEy+6hrpPRnRQ3LgVLmkpVp3gVU4V7SRgCByXEEa06mWi92bvDSPEYYRZqjVCNDyHoJBQHXFhXkP2AVZoTxAecJxOlHS93jKXdhkSZvQII4qQVM47C0Xn9f1Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1629737529; 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=MC9j6k0V/Za8pijiWtia3uGvcm5jnrdduHaC4PRlsRw=; b=S4wKq0Td+srHUJ1AoBhicuMdf0DZQfVIbQdWC6BmeLOn9MWEXbIkT7cIGmuQguubUDzeGVVNMv/SR20KSNBYOLxWUpu5ZZtKT4hAIJ53AP0SLktE94O2DjxGmyKRt8cKABQSx2qv+aVhx0k51IfbRmCOR58YU09QoKerV7W8QwY= 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 162973752983295.20889727542624; Mon, 23 Aug 2021 09:52:09 -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-603-a7wz4zWKPmWZ-pUK33GAcA-1; Mon, 23 Aug 2021 12:52:05 -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 6A3BE80292A; Mon, 23 Aug 2021 16:52:00 +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 41B4C5D740; Mon, 23 Aug 2021 16:52:00 +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 0BB4A4A7CA; Mon, 23 Aug 2021 16:52:00 +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 17NGoXCW031652 for ; Mon, 23 Aug 2021 12:50:33 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1BB8110372D5; Mon, 23 Aug 2021 16:50:33 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.43.2.2]) by smtp.corp.redhat.com (Postfix) with ESMTP id 98B4210372E8 for ; Mon, 23 Aug 2021 16:50:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629737527; 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=MC9j6k0V/Za8pijiWtia3uGvcm5jnrdduHaC4PRlsRw=; b=NTBVTJHrkOmNfoH+hOd3yY4EiPAo75tRu/j4dc4xWbFx7QFm+6aXgb92gAw5sWUZdbVsW8 h0d64lZj1iPytAhmESU8H007GY2+IrpB+GccaFvKmpIUbripojgocQdtjtjxG74B57ol1d aYt7I/dZUTruYkCMekNh7LFUwboBHUQ= X-MC-Unique: a7wz4zWKPmWZ-pUK33GAcA-1 From: Kristina Hanicova To: libvir-list@redhat.com Subject: [PATCH 4/7] api: add virNetworkDefineFlags Date: Mon, 23 Aug 2021 18:50:11 +0200 Message-Id: <8662003b734d0e0980de852c177779dd7aabb374.1629737311.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.15 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: 1629737530489100001 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 be9d6eb2cb..0a49c1888e 100644 --- a/include/libvirt/libvirt-network.h +++ b/include/libvirt/libvirt-network.h @@ -119,6 +119,10 @@ virNetworkPtr virNetworkLookupByUUIDString = (virConnectPtr conn, virNetworkPtr virNetworkCreateXML (virConnectPtr conn, const char *xmlDesc); =20 +typedef enum { + VIR_NETWORK_DEFINE_VALIDATE =3D 1 << 0, /* Validate the XML document a= gainst schema */ +} virNetworkDefineFlags; + /* * Define inactive persistent network */ diff --git a/src/libvirt-network.c b/src/libvirt-network.c index b633f49ca9..c9d0e9d25b 100644 --- a/src/libvirt-network.c +++ b/src/libvirt-network.c @@ -469,7 +469,7 @@ virNetworkDefineXML(virConnectPtr conn, const char *xml) * virNetworkDefineXMLFlags: * @conn: pointer to the hypervisor connection * @xml: the XML description for the network, preferably in UTF-8 - * @flags: extra flags; not used yet, so callers should always pass 0 + * @flags: bitwise-OR of virNetworkDefineFlags * * Define an inactive persistent virtual network or modify an existing * persistent one from the XML description. --=20 2.31.1