diff options
author | Peter Krempa <pkrempa@redhat.com> | 2014-11-24 16:41:39 +0100 |
---|---|---|
committer | Peter Krempa <pkrempa@redhat.com> | 2014-11-24 17:53:12 +0100 |
commit | acc47bcb71dd523264ba7e626624746017a052bc (patch) | |
tree | 9692488a49c4149ea6c403010910bbf60348c1ca /libvirt-override-virConnect.py | |
parent | c6def1bf955cbdbdc4270ddaef39a52b522622b5 (diff) | |
download | libvirt-python-acc47bcb71dd523264ba7e626624746017a052bc.tar.gz |
event: Add bindings for agent lifecycle event
Also add the example.
Diffstat (limited to 'libvirt-override-virConnect.py')
-rw-r--r-- | libvirt-override-virConnect.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libvirt-override-virConnect.py b/libvirt-override-virConnect.py index ffb6d6b..88c864c 100644 --- a/libvirt-override-virConnect.py +++ b/libvirt-override-virConnect.py @@ -197,6 +197,16 @@ cb(self, virDomain(self, _obj=dom), params, opaque) return 0 + def _dispatchDomainEventAgentLifecycleCallback(self, dom, state, reason, cbData): + """Dispatches event to python user domain agent lifecycle event callback + """ + + cb = cbData["cb"] + opaque = cbData["opaque"] + + cb(self, virDomain(self, _obj=dom), state, reason, 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 """ |