From nobody Wed May 14 10:07:36 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1527449191889140.60319352488318; Sun, 27 May 2018 12:26:31 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7A1AB30C54F7; Sun, 27 May 2018 19:26:30 +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 3E95C308BDA9; Sun, 27 May 2018 19:26:30 +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 C710918033F5; Sun, 27 May 2018 19:26:29 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w4RJQBtA021804 for ; Sun, 27 May 2018 15:26:11 -0400 Received: by smtp.corp.redhat.com (Postfix) id 4574F17B48; Sun, 27 May 2018 19:26:11 +0000 (UTC) Received: from mx1.redhat.com (ext-mx17.extmail.prod.ext.phx2.redhat.com [10.5.110.46]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3D6A936FA for ; Sun, 27 May 2018 19:26:07 +0000 (UTC) Received: from mail-qk0-f169.google.com (mail-qk0-f169.google.com [209.85.220.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 06A6F30C715F for ; Sun, 27 May 2018 19:25:57 +0000 (UTC) Received: by mail-qk0-f169.google.com with SMTP id d125-v6so7757849qkb.8 for ; Sun, 27 May 2018 12:25:56 -0700 (PDT) Received: from localhost.localdomain ([186.223.96.215]) by smtp.gmail.com with ESMTPSA id 73-v6sm5901971qkc.96.2018.05.27.12.25.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 May 2018 12:25:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=p7wNJiXB24WMcGDnLh5s8KV/pnT2/rvtW4fUPeAAFvI=; b=PmWJqrmTroX2nqPIx1CZM0SIq4iDg5XZLMdfYQ45pKHSfbya8hA/mE5gTBwH8GmkLv EzAXXHVVHPWNNtJf6qrreDDkqCu3oOdbiPEANQfQZMo4Qw5SxOWwV5bFUqwiIuluUmej 348QyLlG7xh9i6QFC99+gQA4lBgltEuBGIaEh/2epAZi4l2DF5c6QcBeyLEPaUiqioj4 Gd/galG9biAVOvvmP+itnygUmGhxo+nsQeW8Yt8gTy2ZAaA81rn5m8Gu5kxT+E/lwjTC BB8J1VMTmB1axZBqDCggw+9z23jxx+V7mM0eGPNKe0IfIjvnF/iJxk1lOyU+lgsy2/f3 c9nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=p7wNJiXB24WMcGDnLh5s8KV/pnT2/rvtW4fUPeAAFvI=; b=GPUIK0uR5iEefADWxhKKoTuvt9+ZHNdu1WjlMBg/XgmjiOwvxPLthPvw3GewZuj5eI cCnwTTtcgsWRuuQPTGzxM5oTt8l0yYyKEwIZK2WJlavNUguFQA4U8pg8Gf72XvzCeLYA hdo9c0PkM82c1qJ3R3qVpS/Au2otNji+zulNe7JatXIXHkEcTWGmfi+AylaDf+hBDEmC 1rRYjCwY5rQ/fPUm9iCuBZuvLmRaz29nGKhp9R8IgW63t257K4EUnyNyBRkbuuaMcvxz iAMQs6J6q0ulUrVMy2E+rd4iDEuZzDj/Z71DGNAbj2Fat/r6JQGozvsYPalkYrVWqcfm k/9A== X-Gm-Message-State: ALKqPwdJWoU6oa2E3an3YRLROXfBsP6hNFlPs+voEJmMjauellhaCm5D NNEwBkZVEvFH97y7LIzDGwvugg== X-Google-Smtp-Source: ADUXVKI+0yH+MNUoT8Cj7xbtqYJD4Lmka0idrmnVp6DnxOGZTXDNEDPWgZ66YqUhHIzCuDRWfxtqog== X-Received: by 2002:a37:a94a:: with SMTP id s71-v6mr8997230qke.221.1527449156072; Sun, 27 May 2018 12:25:56 -0700 (PDT) From: Julio Faracco To: libvir-list@redhat.com Date: Sun, 27 May 2018 16:25:36 -0300 Message-Id: <20180527192539.17922-3-jcfaracco@gmail.com> In-Reply-To: <20180527192539.17922-1-jcfaracco@gmail.com> References: <20180527192539.17922-1-jcfaracco@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Sun, 27 May 2018 19:25:57 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Sun, 27 May 2018 19:25:57 +0000 (UTC) for IP:'209.85.220.169' DOMAIN:'mail-qk0-f169.google.com' HELO:'mail-qk0-f169.google.com' FROM:'jcfaracco@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.301 * (DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, SPF_PASS, T_DKIM_INVALID) 209.85.220.169 mail-qk0-f169.google.com 209.85.220.169 mail-qk0-f169.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.46 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 2/5] driver: adding two new driver functions to support volume events. 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Sun, 27 May 2018 19:26:30 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" This commit adds two functions into the structure of the driver to support volume events: 'connectStorageVolEventRegisterAny' and 'connectStorageVolEventDeregisterAny'. Signed-off-by: Julio Faracco --- src/driver-storage.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/driver-storage.h b/src/driver-storage.h index 146eb88b2c..f332b9918f 100644 --- a/src/driver-storage.h +++ b/src/driver-storage.h @@ -213,10 +213,21 @@ typedef int void *opaque, virFreeCallback freecb); =20 +typedef int +(*virDrvConnectStorageVolEventRegisterAny)(virConnectPtr conn, + virStorageVolPtr vol, + int eventID, + virConnectStorageVolEventGeneri= cCallback cb, + void *opaque, + virFreeCallback freecb); + typedef int (*virDrvConnectStoragePoolEventDeregisterAny)(virConnectPtr conn, int callbackID); =20 +typedef int +(*virDrvConnectStorageVolEventDeregisterAny)(virConnectPtr conn, + int callbackID); =20 typedef struct _virStorageDriver virStorageDriver; typedef virStorageDriver *virStorageDriverPtr; @@ -237,6 +248,8 @@ struct _virStorageDriver { virDrvConnectFindStoragePoolSources connectFindStoragePoolSources; virDrvConnectStoragePoolEventRegisterAny connectStoragePoolEventRegist= erAny; virDrvConnectStoragePoolEventDeregisterAny connectStoragePoolEventDere= gisterAny; + virDrvConnectStorageVolEventRegisterAny connectStorageVolEventRegister= Any; + virDrvConnectStorageVolEventDeregisterAny connectStorageVolEventDeregi= sterAny; virDrvStoragePoolLookupByName storagePoolLookupByName; virDrvStoragePoolLookupByUUID storagePoolLookupByUUID; virDrvStoragePoolLookupByVolume storagePoolLookupByVolume; --=20 2.17.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list