diff options
author | Peter Krempa <pkrempa@redhat.com> | 2016-04-18 12:53:02 +0200 |
---|---|---|
committer | Peter Krempa <pkrempa@redhat.com> | 2016-04-18 13:18:26 +0200 |
commit | 1233645a280a70c45769f3041f2b773d51ce593c (patch) | |
tree | ecdb28043037fc772c591cec2c416350fee4eff2 /libvirt-override-virConnect.py | |
parent | 128d178c7431ec069f47d8a002e68e46781c0be1 (diff) | |
download | libvirt-python-1233645a280a70c45769f3041f2b773d51ce593c.tar.gz |
event: Add support VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED
Diffstat (limited to 'libvirt-override-virConnect.py')
-rw-r--r-- | libvirt-override-virConnect.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libvirt-override-virConnect.py b/libvirt-override-virConnect.py index 396a6ed..0f76c59 100644 --- a/libvirt-override-virConnect.py +++ b/libvirt-override-virConnect.py @@ -234,6 +234,15 @@ cb(self, virDomain(self, _obj=dom), params, opaque) return 0 + def _dispatchDomainEventDeviceRemovalFailedCallback(self, dom, devAlias, cbData): + """Dispatches event to python user domain device removal failed 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 """ |