summaryrefslogtreecommitdiff
path: root/typewrappers.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2013-11-26 18:31:18 +0000
committerDaniel P. Berrange <berrange@redhat.com>2013-11-27 11:11:23 +0000
commit197153c67ec0094bbc8eb2c29a9b91342dd2cca4 (patch)
tree7f6c5869a506d5c9f889b51d76913e3aee5fbeb2 /typewrappers.c
parent9bc81a156d281294b79192d04a5db10997566299 (diff)
downloadlibvirt-python-197153c67ec0094bbc8eb2c29a9b91342dd2cca4.tar.gz
Add missing binding of security model/label APIsv1.2.0-rc2
The virNodeGetSecurityModel, virDomainGetSecurityLabel and virDomainGetSecurityLabelList methods were disabled in the python binding for inexplicable reasons. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'typewrappers.c')
-rw-r--r--typewrappers.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/typewrappers.c b/typewrappers.c
index d6cbbf1..1622986 100644
--- a/typewrappers.c
+++ b/typewrappers.c
@@ -116,6 +116,15 @@ libvirt_constcharPtrWrap(const char *str)
return ret;
}
+PyObject *
+libvirt_boolWrap(int val)
+{
+ if (val)
+ Py_RETURN_TRUE;
+ else
+ Py_RETURN_FALSE;
+}
+
int
libvirt_intUnwrap(PyObject *obj, int *val)
{