summaryrefslogtreecommitdiffstats
path: root/libvirt-override-virConnect.py
diff options
context:
space:
mode:
authorJiri Denemark <jdenemar@redhat.com>2013-06-19 15:27:29 +0200
committerJiri Denemark <jdenemar@redhat.com>2013-07-18 15:28:45 +0200
commit8566ca3ad19c3db2e58ca5dc5fb629679328d1d5 (patch)
treeb9c3de9db46c66240dbc57048f65e9c9fc30b8b9 /libvirt-override-virConnect.py
parent03e7cacfa2891b62737886692bd68b648cc74706 (diff)
downloadlibvirt-python-split-8566ca3ad19c3db2e58ca5dc5fb629679328d1d5.zip
libvirt-python-split-8566ca3ad19c3db2e58ca5dc5fb629679328d1d5.tar.gz
libvirt-python-split-8566ca3ad19c3db2e58ca5dc5fb629679328d1d5.tar.xz
Add VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED event
Diffstat (limited to 'libvirt-override-virConnect.py')
-rw-r--r--libvirt-override-virConnect.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/libvirt-override-virConnect.py b/libvirt-override-virConnect.py
index a0f579d..044faa0 100644
--- a/libvirt-override-virConnect.py
+++ b/libvirt-override-virConnect.py
@@ -179,6 +179,15 @@
cb(self, virDomain(self, _obj=dom), reason, opaque)
return 0
+ def _dispatchDomainEventDeviceRemovedCallback(self, dom, devAlias, cbData):
+ """Dispatches event to python user domain device removed event callbacks
+ """
+ cb = cbData["cb"]
+ opaque = cbData["opaque"]
+
+ cb(self, virDomain(self, _obj=dom), devAlias, 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 """