summaryrefslogtreecommitdiffstats
path: root/typewrappers.h
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2011-06-14 16:07:43 -0400
committerCole Robinson <crobinso@redhat.com>2011-06-21 10:08:47 -0400
commitfa47dad041bf9878702724dba9d0ca4152fab928 (patch)
tree13b08cdead9ee6312e7116d0ea1f3f5f578aee97 /typewrappers.h
parent8f2990bffe64b6d9392abd60a2bdc6da3a9aeafd (diff)
downloadlibvirt-python-split-fa47dad041bf9878702724dba9d0ca4152fab928.tar.gz
libvirt-python-split-fa47dad041bf9878702724dba9d0ca4152fab928.tar.xz
libvirt-python-split-fa47dad041bf9878702724dba9d0ca4152fab928.zip
python: Implement virStreamSend/Recv
The return values for the python version are different that the C version of virStreamSend: on success we return a string, an error raises an exception, and if the stream would block we return int(-2). We need to do this since strings aren't passed by reference in python.
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 cc98110..305d594 100644
--- a/typewrappers.h
+++ b/typewrappers.h
@@ -156,6 +156,7 @@ PyObject * libvirt_ulongWrap(unsigned long val);
PyObject * libvirt_longlongWrap(long long val);
PyObject * libvirt_ulonglongWrap(unsigned long long val);
PyObject * libvirt_charPtrWrap(char *str);
+PyObject * libvirt_charPtrSizeWrap(char *str, Py_ssize_t size);
PyObject * libvirt_constcharPtrWrap(const char *str);
PyObject * libvirt_charPtrConstWrap(const char *str);
PyObject * libvirt_virConnectPtrWrap(virConnectPtr node);