diff options
author | Ján Tomko <jtomko@redhat.com> | 2015-03-30 20:49:41 +0200 |
---|---|---|
committer | Ján Tomko <jtomko@redhat.com> | 2015-04-15 18:48:23 +0200 |
commit | cd2d02ab0d92078b4addcbf1e650add92730bc4d (patch) | |
tree | 70a41dc257589a2dc079a079a66e2232359fe476 /libvirt-override-virConnect.py | |
parent | 17330a831433cdd96511c28980cb62f742667c40 (diff) | |
download | libvirt-python-cd2d02ab0d92078b4addcbf1e650add92730bc4d.tar.gz |
Implement the DEVICE_ADDED event
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 88c864c..821be87 100644 --- a/libvirt-override-virConnect.py +++ b/libvirt-override-virConnect.py @@ -207,6 +207,15 @@ cb(self, virDomain(self, _obj=dom), state, reason, opaque) return 0 + def _dispatchDomainEventDeviceAddedCallback(self, dom, devAlias, cbData): + """Dispatches event to python user domain device added 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 """ |