summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2013-11-26 16:56:09 +0000
committerDaniel P. Berrange <berrange@redhat.com>2013-11-27 11:07:24 +0000
commitd05f1059928bffcfd878bfeea34f2008e90e8054 (patch)
treeb59c2e7007df8b738924369f693d5e3422e4f277
parentedb16fd5c11b136e0cedb1688436eca29859622f (diff)
downloadlibvirt-python-d05f1059928bffcfd878bfeea34f2008e90e8054.tar.gz
Make block pull event dispatcher private
The method dispatchDomainEventBlockPullCallback which is used internally to dispatch block pull events to the python application code was missing the leading '_', to denote that it was private. All other event callback helpers have a leading '_'. No application should have been using this so it is justifiable to rename it. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
-rw-r--r--libvirt-override-virConnect.py2
-rw-r--r--libvirt-override.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libvirt-override-virConnect.py b/libvirt-override-virConnect.py
index 4ba3d30..23fadfd 100644
--- a/libvirt-override-virConnect.py
+++ b/libvirt-override-virConnect.py
@@ -113,7 +113,7 @@
authScheme, subject, opaque)
return 0
- def dispatchDomainEventBlockPullCallback(self, dom, path, type, status, cbData):
+ def _dispatchDomainEventBlockPullCallback(self, dom, path, type, status, cbData):
"""Dispatches events to python user domain blockJob event callbacks
"""
try:
diff --git a/libvirt-override.c b/libvirt-override.c
index 4cc64b7..d3802de 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -5998,7 +5998,7 @@ libvirt_virConnectDomainEventBlockJobCallback(virConnectPtr conn ATTRIBUTE_UNUSE
/* Call the Callback Dispatcher */
pyobj_ret = PyObject_CallMethod(pyobj_conn,
- (char*)"dispatchDomainEventBlockPullCallback",
+ (char*)"_dispatchDomainEventBlockPullCallback",
(char*)"OsiiO",
pyobj_dom, path, type, status, pyobj_cbData);