mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-08-04 12:21:57 +03:00
Add support for domain metadata change event
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
@ -243,6 +243,15 @@
|
||||
cb(self, virDomain(self, _obj=dom), devAlias, opaque)
|
||||
return 0
|
||||
|
||||
def _dispatchDomainEventMetadataChangeCallback(self, dom, mtype, nsuri, cbData):
|
||||
"""Dispatches event to python user domain device removal failed event callbacks
|
||||
"""
|
||||
cb = cbData["cb"]
|
||||
opaque = cbData["opaque"]
|
||||
|
||||
cb(self, virDomain(self, _obj=dom), mtype, nsuri, opaque)
|
||||
return 0
|
||||
|
||||
def domainEventDeregisterAny(self, callbackID):
|
||||
"""Removes a Domain Event Callback. De-registering for a
|
||||
domain callback will disable delivery of this event type """
|
||||
|
Reference in New Issue
Block a user