diff options
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 35009bb..f26e65a 100644 --- a/libvirt-override-virConnect.py +++ b/libvirt-override-virConnect.py @@ -252,6 +252,15 @@ cb(self, virDomain(self, _obj=dom), mtype, nsuri, opaque) return 0 + def _dispatchDomainEventBlockThresholdCallback(self, dom, dev, path, threshold, excess, cbData): + """Dispatches event to python user domain block device threshold event callbacks + """ + cb = cbData["cb"] + opaque = cbData["opaque"] + + cb(self, virDomain(self, _obj=dom), dev, path, threshold, excess, 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 """ |