summaryrefslogtreecommitdiffstats
path: root/generator.py
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2011-06-15 16:54:16 -0400
committerCole Robinson <crobinso@redhat.com>2011-06-21 10:08:47 -0400
commiteaf7c983b62e389e1c8a65184a01f28e8109be6b (patch)
tree528e22652bcd5a0b6c900e16b8504680376d235b /generator.py
parentfa47dad041bf9878702724dba9d0ca4152fab928 (diff)
downloadlibvirt-python-split-eaf7c983b62e389e1c8a65184a01f28e8109be6b.tar.gz
libvirt-python-split-eaf7c983b62e389e1c8a65184a01f28e8109be6b.tar.xz
libvirt-python-split-eaf7c983b62e389e1c8a65184a01f28e8109be6b.zip
python: Implement virStreamSend/RecvAll helpers
Pure python implementation. The handler callbacks have been altered a bit compared to the C API: RecvAll doesn't pass length of the data read since that can be trivially obtained from python string objects, and SendAll requires the handler to return the string data to send rather than store the data in a string pointer.
Diffstat (limited to 'generator.py')
-rwxr-xr-xgenerator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/generator.py b/generator.py
index 315d3d4..7c843d7 100755
--- a/generator.py
+++ b/generator.py
@@ -393,8 +393,8 @@ skip_function = (
'virFreeError', # Only needed if we use virSaveLastError
'virStreamFree', # Overridden in libvirt-override-virStream.py
- 'virStreamRecvAll', # XXX: Can be written in pure python?
- 'virStreamSendAll', # XXX: Can be written in pure python?
+ 'virStreamRecvAll', # Pure python libvirt-override-virStream.py
+ 'virStreamSendAll', # Pure python libvirt-override-virStream.py
'virStreamRecv', # overridden in libvirt-override-virStream.py
'virStreamSend', # overridden in libvirt-override-virStream.py