summaryrefslogtreecommitdiff
path: root/libvirt-override-virConnect.py
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2014-11-24 16:41:39 +0100
committerPeter Krempa <pkrempa@redhat.com>2014-11-24 17:53:12 +0100
commitacc47bcb71dd523264ba7e626624746017a052bc (patch)
tree9692488a49c4149ea6c403010910bbf60348c1ca /libvirt-override-virConnect.py
parentc6def1bf955cbdbdc4270ddaef39a52b522622b5 (diff)
downloadlibvirt-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.py10
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 """