rpc: Improve argument definitions
authorMichael Hanselmann <hansmi@google.com>
Mon, 31 Oct 2011 19:09:22 +0000 (20:09 +0100)
committerMichael Hanselmann <hansmi@google.com>
Tue, 1 Nov 2011 15:17:14 +0000 (16:17 +0100)
commitcd40dc538acf26fe8d158ead7221cba1139c7a9d
tree0b1cdd715761abda218342d4da42ffc03125c174
parentb8c160c1c0b4cc6ac4defdb5657d10ab71ebcba6
rpc: Improve argument definitions

Instead of in-place code now each argument has an (optional) kind
assigned. The RPC client will then take care of encoding each argument
according to its definition. A new base (_RpcClientBase) is added to
take care of encoding and dispatching calls.

Future patches will also use these definitions in the node daemon.

A nice side-effect of this change is the ability to use stand-alone
functions, as opposed to class member methods, for most of the encoding.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
autotools/build-rpc
lib/rpc.py
lib/rpc_defs.py