diff options
author | Cole Robinson <crobinso@redhat.com> | 2011-06-14 16:07:43 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2011-06-21 10:08:47 -0400 |
commit | fa47dad041bf9878702724dba9d0ca4152fab928 (patch) | |
tree | 13b08cdead9ee6312e7116d0ea1f3f5f578aee97 /generator.py | |
parent | 8f2990bffe64b6d9392abd60a2bdc6da3a9aeafd (diff) | |
download | libvirt-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 'generator.py')
-rwxr-xr-x | generator.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/generator.py b/generator.py index cb4d8a4..315d3d4 100755 --- a/generator.py +++ b/generator.py @@ -348,8 +348,6 @@ skip_impl = ( 'virNWFilterGetUUID', 'virNWFilterGetUUIDString', 'virNWFilterLookupByUUID', - 'virStreamRecv', - 'virStreamSend', 'virStoragePoolGetUUID', 'virStoragePoolGetUUIDString', 'virStoragePoolLookupByUUID', @@ -393,9 +391,12 @@ skip_function = ( 'virConnectDomainEventDeregisterAny', # overridden in virConnect.py 'virSaveLastError', # We have our own python error wrapper 'virFreeError', # Only needed if we use virSaveLastError + 'virStreamFree', # Overridden in libvirt-override-virStream.py - 'virStreamRecvAll', - 'virStreamSendAll', + 'virStreamRecvAll', # XXX: Can be written in pure python? + 'virStreamSendAll', # XXX: Can be written in pure python? + 'virStreamRecv', # overridden in libvirt-override-virStream.py + 'virStreamSend', # overridden in libvirt-override-virStream.py # 'Ref' functions have no use for bindings users. "virConnectRef", |