libvirt/src/remote
Eric Blake 40624d32fb API: remote support for VIR_TYPED_PARAM_STRING
Send and receive string typed parameters across RPC.  This also
completes the back-compat mentioned in the previous patch - the
only time we have an older client talking to a newer server is
if RPC is in use, so filtering out strings during RPC prevents
returning an unknown type to the older client.

* src/remote/remote_protocol.x (remote_typed_param_value): Add
another union value.
* daemon/remote.c (remoteDeserializeTypedParameters): Handle
strings on rpc.
(remoteSerializeTypedParameters): Likewise; plus filter out
strings when replying to older clients.  Adjust callers.
* src/remote/remote_driver.c (remoteFreeTypedParameters)
(remoteSerializeTypedParameters)
(remoteDeserializeTypedParameters): Handle strings on rpc.
* src/rpc/gendispatch.pl: Properly clean up typed arrays.
* src/remote_protocol-structs: Update.
Based on an initial patch by Hu Tao, with feedback from
Daniel P. Berrange.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-11-11 17:25:21 -07:00
..
qemu_protocol.x daemon: Create priority workers pool 2011-09-05 18:14:08 +02:00
remote_driver.c API: remote support for VIR_TYPED_PARAM_STRING 2011-11-11 17:25:21 -07:00
remote_driver.h maint: use gnulib configmake rather than open-coding things 2010-11-17 08:58:58 -07:00
remote_protocol.x API: remote support for VIR_TYPED_PARAM_STRING 2011-11-11 17:25:21 -07:00