1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-12-18 20:24:58 +03:00

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.
This commit is contained in:
Cole Robinson
2011-06-15 16:54:16 -04:00
parent ca55dc598c
commit 3b04871e80
2 changed files with 66 additions and 2 deletions

View File

@@ -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