summaryrefslogtreecommitdiffstats
path: root/libvir.py
diff options
context:
space:
mode:
Diffstat (limited to 'libvir.py')
-rw-r--r--libvir.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/libvir.py b/libvir.py
index 70ceebc..34fe8f3 100644
--- a/libvir.py
+++ b/libvir.py
@@ -89,6 +89,12 @@ def registerErrorHandler(f, ctx):
Returns 1 in case of success."""
return libvirtmod.virRegisterErrorHandler(f,ctx)
+def openAuth(uri, auth, flags):
+ ret = libvirtmod.virConnectOpenAuth(uri, auth, flags)
+ if ret is None:raise libvirtError('virConnectOpenAuth() failed')
+ return virConnect(_obj=ret)
+
+
#
# Return library version.
#