]> xenbits.xensource.com Git - libvirt.git/commit
python: Implement virStreamSend/Recv
authorCole Robinson <crobinso@redhat.com>
Tue, 14 Jun 2011 20:07:43 +0000 (16:07 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 21 Jun 2011 14:08:47 +0000 (10:08 -0400)
commitca55dc598ccae47070f063b0ca290dc34e9c6a95
tree0bcbc88cf18b3013f7d80795b2a35680330f514a
parenta22dbe0d661b138badef9604d1c5e2a48d49a51a
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.
python/generator.py
python/libvirt-override-virStream.py
python/libvirt-override.c
python/typewrappers.c
python/typewrappers.h