From nobody Fri Oct 18 04:20:09 2024 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=fail(p=none dis=none) header.from=riseup.net ARC-Seal: i=1; a=rsa-sha256; t=1693756219; cv=none; d=zohomail.com; s=zohoarc; b=W/DLKQaCo5g1qsW6j7+/G3nw5TuVow4hsn54VPw9ImXjTMAidCURmvDs2Hz34JxrXlVWe8kM7fMSjfxlruPuAdtviGZR8lu6VLr9rLN91H5o3v0s+rryYC3XgQhuQIIeW0zLNj6K9nXm4tqD6NM7fSMqEyGBMhpNk23+b9uxSaw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693756219; 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=1K/SCmo8G9MPe6/qY2PISm0edz6+DI1tyXzRvvvpLFQ=; b=Bq3b8i4SFMI/DW734YPpY1KVJnpE3Mi789504Hacm0yGZZ7eTB3fvvi7HSVPDzo8lETCU9bwBUZ1tuRzBvWS2e83oV04nbkFSgTpB6W0rIoYnNJIWpGtElri/amxrQ+0cNSWLSgAsod9M/Lr3TOzTfwd8gzARCvWfPbMzzhxO84= 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=fail 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 1693756219733250.51148278973494; Sun, 3 Sep 2023 08:50:19 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-381-hTXlIbeVMWubuhRuEvRUlw-1; Sun, 03 Sep 2023 11:50:16 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 85B103C0EADC; Sun, 3 Sep 2023 15:50:14 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 74291200BA73; Sun, 3 Sep 2023 15:50:14 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 551EE1946597; Sun, 3 Sep 2023 15:50:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id A1CF81946597 for ; Sun, 3 Sep 2023 15:50:12 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 8358740C84A7; Sun, 3 Sep 2023 15:50:12 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7C49C40561C3 for ; Sun, 3 Sep 2023 15:50:12 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 429F8925FC8 for ; Sun, 3 Sep 2023 15:50:12 +0000 (UTC) Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-15-Qtyl0oWKP3Os00_IB29uYA-1; Sun, 03 Sep 2023 11:50:10 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4Rdx6n42Ckz9tGn for ; Sun, 3 Sep 2023 15:50:09 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4Rdx6m37WLzFpfK; Sun, 3 Sep 2023 15:50:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693756218; 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=1K/SCmo8G9MPe6/qY2PISm0edz6+DI1tyXzRvvvpLFQ=; b=Lf3MnemJyRUDJBl094lNBgXAey0DXdQ0ITu+Eli8O5k0lJwYOFHDpU+j5JCPmw9+Ig6erB Un4W4vG42cc4W/VhYsWJ74UqTmj1mtyi5CAV6Nv+lOjW91F28irVTjekibaozkSTQEKN6u tsHU1CxNTc5x154AwC18N/gWrKnTN8s= X-MC-Unique: hTXlIbeVMWubuhRuEvRUlw-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: Qtyl0oWKP3Os00_IB29uYA-1 X-Riseup-User-ID: CB502E9C133A010DF0B003683C2873992F30ABF64DE0C270CAA67316D3958802 From: K Shiva Kiran To: libvir-list@redhat.com Subject: [PATCH 03/16] nwfilter: Add enum to operate on user defined metadata Date: Sun, 3 Sep 2023 21:19:04 +0530 Message-ID: <20230903155034.211476-4-shiva_kr@riseup.net> In-Reply-To: <20230903155034.211476-1-shiva_kr@riseup.net> References: <20230903155034.211476-1-shiva_kr@riseup.net> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: K Shiva Kiran Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: riseup.net Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1693756221244100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Adds enum `virNWFilterMetadataType` to choose between ``, `<description>` or `<metadata>`. Signed-off-by: K Shiva Kiran <shiva_kr@riseup.net> --- include/libvirt/libvirt-nwfilter.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/libvirt/libvirt-nwfilter.h b/include/libvirt/libvirt-n= wfilter.h index 33b842b464..a9930a1e66 100644 --- a/include/libvirt/libvirt-nwfilter.h +++ b/include/libvirt/libvirt-nwfilter.h @@ -159,4 +159,18 @@ int virNWFilterBindingDelete(virNW= FilterBindingPtr binding); int virNWFilterBindingRef(virNWFilterBindingPtr bindin= g); int virNWFilterBindingFree(virNWFilterBindingPtr bindi= ng); =20 +/** + * virNWFilterMetadataType: + * + * Since: 9.8.0 + */ +typedef enum { + VIR_NWFILTER_METADATA_DESCRIPTION =3D 0, /* Operate on <description> (= Since: 9.8.0) */ + VIR_NWFILTER_METADATA_TITLE =3D 1, /* Operate on <title> (Since:= 9.8.0) */ + VIR_NWFILTER_METADATA_ELEMENT =3D 2, /* Operate on <metadata> (Sin= ce: 9.8.0) */ + +# ifdef VIR_ENUM_SENTINELS + VIR_NWFILTER_METADATA_LAST /* (Since: 9.8.0) */ +# endif +} virNWFilterMetadataType; #endif /* LIBVIRT_NWFILTER_H */ --=20 2.42.0