summaryrefslogtreecommitdiffstats
path: root/generator.py
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-07-30 17:30:42 +0100
committerDaniel P. Berrange <berrange@redhat.com>2012-12-04 13:50:11 +0000
commitac532dd37dcca7f7b43dda56516aa39a69b3401c (patch)
tree0966583fc83ee58239659724736b3bb846e59356 /generator.py
parentca7f58d203971b219bb965f20500cf463fdbed58 (diff)
downloadlibvirt-python-v6-ac532dd37dcca7f7b43dda56516aa39a69b3401c.tar.gz
libvirt-python-v6-ac532dd37dcca7f7b43dda56516aa39a69b3401c.tar.xz
libvirt-python-v6-ac532dd37dcca7f7b43dda56516aa39a69b3401c.zip
Bind connection close callback APIs to python binding
Add code in the python binding to cope with the new APIs virConnectRegisterCloseCallback and virConnectUnregisterCloseCallback. Also demonstrate their use in the python domain events demo Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'generator.py')
-rwxr-xr-xgenerator.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/generator.py b/generator.py
index c76ff2a..e9b9270 100755
--- a/generator.py
+++ b/generator.py
@@ -425,8 +425,6 @@ skip_impl = (
'virDomainGetInterfaceParameters',
'virDomainGetCPUStats',
'virDomainGetDiskErrors',
- 'virConnectUnregisterCloseCallback',
- 'virConnectRegisterCloseCallback',
'virNodeGetMemoryParameters',
'virNodeSetMemoryParameters',
'virNodeGetCPUMap',
@@ -476,6 +474,9 @@ skip_function = (
'virStreamRecv', # overridden in libvirt-override-virStream.py
'virStreamSend', # overridden in libvirt-override-virStream.py
+ 'virConnectUnregisterCloseCallback', # overriden in virConnect.py
+ 'virConnectRegisterCloseCallback', # overriden in virConnect.py
+
# 'Ref' functions have no use for bindings users.
"virConnectRef",
"virDomainRef",