Skip to content
  • Michael Hanselmann's avatar
    rpc: Improve argument definitions · cd40dc53
    Michael Hanselmann authored
    
    
    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: default avatarMichael Hanselmann <hansmi@google.com>
    Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
    cd40dc53