From nobody Wed Oct 30 19:55:59 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=1693753610; cv=none; d=zohomail.com; s=zohoarc; b=a8OLgCOSwGLyx/2kaX8EBcNUen9Rcj4TrHZGEn1Z59z79k2HYpg7jkjjLa02HqRgeIf2LJ2KJe+7g6oXDOzjVBzpzzbzE3yIqiEj41QTl8zvb5zDroHQJgVPHWrfbG8kQjrhP8k5g5XNGA/pw//mwZJ5PiZRsrMruY3LKBukKds= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693753610; 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=Loo843uQ8/x0d0cQOiHz/A1ZH29UNo7eTUGUsv3eXpc=; b=gS4JbTL8opOWYiNuLRO0EVn443sfKOROsDCQBfTYe9vVuYE0ZYVmSkcohfVnI810xZy3ANcqcthKYgbGBzSpPw48wLOWw755m4qz7AIq9bH8pKl8W3tmjACLdG8O9x88e+f5OlLHizyuuqxIkuYZDf+ulnn2grCWvfUX6Y0odQ8= 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 169375361042651.27619438110435; Sun, 3 Sep 2023 08:06:50 -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-215--oKR8icsMgKzBGnt4vKyLw-1; Sun, 03 Sep 2023 11:06:43 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EE0F93C0E216; Sun, 3 Sep 2023 15:06:40 +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 D95E6525727; Sun, 3 Sep 2023 15:06:40 +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 9591A1946588; Sun, 3 Sep 2023 15:06:40 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id B6D5619472A0 for ; Sun, 3 Sep 2023 15:06:39 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id A71421460FFB; Sun, 3 Sep 2023 15:06:39 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9FD481460FFA for ; Sun, 3 Sep 2023 15:06:39 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (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 84C4485651F for ; Sun, 3 Sep 2023 15:06:39 +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-2-Ly44QdJLOKCN3RsY5JF9DQ-1; Sun, 03 Sep 2023 11:06:37 -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 4Rdw8X3nvRz9tJt for ; Sun, 3 Sep 2023 15:06:36 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4Rdw8W2bcNzFs32; Sun, 3 Sep 2023 15:06:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693753608; 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=Loo843uQ8/x0d0cQOiHz/A1ZH29UNo7eTUGUsv3eXpc=; b=f25QuLQrqtGgYmejERqX1VmKezmgzX7JcRa8sGR53JiZWQYO6FKOtdGkbdTcwsysmIQ7TV nqFTejrzv3Jly1YcbiNwZ6yYH9FyIvodeoPCG53PCKRaI2pHZNLRbJJLP8gIWNO88IraHn 0/cTJnh8HikAmspLgwnD6ECaRovLhZk= X-MC-Unique: -oKR8icsMgKzBGnt4vKyLw-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: Ly44QdJLOKCN3RsY5JF9DQ-1 X-Riseup-User-ID: A25F91ADACC78F1916C2BFF5BB9D7893FDBA75CB9826C5DE9B072D035B64F69E From: K Shiva Kiran To: libvir-list@redhat.com Subject: [PATCH 2/8] Define Network event struct for Metadata change Date: Sun, 3 Sep 2023 20:28:34 +0530 Message-ID: <20230903150541.200896-3-shiva_kr@riseup.net> In-Reply-To: <20230903150541.200896-1-shiva_kr@riseup.net> References: <20230903150541.200896-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.7 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.10 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: 1693753611544100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Adds: - New struct virNetworkEventMetadataChange. - virNetworkEvent*Dispose() function for the same. Signed-off-by: K Shiva Kiran --- src/conf/network_event.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/conf/network_event.c b/src/conf/network_event.c index 6f25e43711..51fa092ffd 100644 --- a/src/conf/network_event.c +++ b/src/conf/network_event.c @@ -45,10 +45,21 @@ struct _virNetworkEventLifecycle { }; typedef struct _virNetworkEventLifecycle virNetworkEventLifecycle; =20 +struct _virNetworkEventMetadataChange { + virNetworkEvent parent; + + int type; + char *nsuri; +}; +typedef struct _virNetworkEventMetadataChange virNetworkEventMetadataChang= e; + static virClass *virNetworkEventClass; static virClass *virNetworkEventLifecycleClass; +static virClass *virNetworkEventMetadataChangeClass; + static void virNetworkEventDispose(void *obj); static void virNetworkEventLifecycleDispose(void *obj); +static void virNetworkEventMetadataChangeDispose(void *obj); =20 static int virNetworkEventsOnceInit(void) @@ -59,6 +70,9 @@ virNetworkEventsOnceInit(void) if (!VIR_CLASS_NEW(virNetworkEventLifecycle, virNetworkEventClass)) return -1; =20 + if (!VIR_CLASS_NEW(virNetworkEventMetadataChange, virNetworkEventClass= )) + return -1; + return 0; } =20 @@ -231,3 +245,13 @@ virNetworkEventLifecycleNew(const char *name, =20 return (virObjectEvent *)event; } + + +static void +virNetworkEventMetadataChangeDispose(void *obj) +{ + virNetworkEventMetadataChange *event =3D obj; + VIR_DEBUG("obj=3D%p", event); + + g_free(event->nsuri); +} --=20 2.42.0