diff options
author | Cole Robinson <crobinso@redhat.com> | 2011-06-15 16:54:16 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2011-06-21 10:08:47 -0400 |
commit | eaf7c983b62e389e1c8a65184a01f28e8109be6b (patch) | |
tree | 528e22652bcd5a0b6c900e16b8504680376d235b /generator.py | |
parent | fa47dad041bf9878702724dba9d0ca4152fab928 (diff) | |
download | libvirt-python-eaf7c983b62e389e1c8a65184a01f28e8109be6b.tar.gz |
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-x | generator.py | 4 |
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 |