• E
    API: remote support for VIR_TYPED_PARAM_STRING · 40624d32
    Eric Blake 提交于
    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: NEric Blake <eblake@redhat.com>
    40624d32
remote_protocol.x 69.8 KB