summaryrefslogtreecommitdiff
path: root/typewrappers.h
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2013-12-09 14:53:34 +0000
committerDaniel P. Berrange <berrange@redhat.com>2013-12-11 16:14:46 +0000
commitd40861012ca5c7eaf93650b827409b5026223724 (patch)
tree6bc5e76419ddc1b5919ea6d730248afd590bf60b /typewrappers.h
parente6551e60cec60a69e04796f160ba4104899bb492 (diff)
downloadlibvirt-python-d40861012ca5c7eaf93650b827409b5026223724.tar.gz
override: Switch virStreamSend wrapper to use libvirt_charPtrSizeUnwrap
Instead of using a 'z#i' format string to receive byte array, use 'O' and then libvirt_charPtrSizeUnwrap. This lets us hide the Python 3 vs 2 differences in typewrappers.c Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'typewrappers.h')
-rw-r--r--typewrappers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/typewrappers.h b/typewrappers.h
index 6bb193c..ed1e4a3 100644
--- a/typewrappers.h
+++ b/typewrappers.h
@@ -175,6 +175,7 @@ int libvirt_ulonglongUnwrap(PyObject *obj, unsigned long long *val);
int libvirt_doubleUnwrap(PyObject *obj, double *val);
int libvirt_boolUnwrap(PyObject *obj, bool *val);
int libvirt_charPtrUnwrap(PyObject *obj, char **str);
+int libvirt_charPtrSizeUnwrap(PyObject *obj, char **str, Py_ssize_t *size);
PyObject * libvirt_virConnectPtrWrap(virConnectPtr node);
PyObject * libvirt_virDomainPtrWrap(virDomainPtr node);
PyObject * libvirt_virNetworkPtrWrap(virNetworkPtr node);