channel: Implement the 'channel_send_call' function

This function is used to send RPC calls to clients. In contrast to
`channel_send_event`, this function will block until the client sends a
response(But it will continue processing requests from that client).

The RPC call stack has a maximum depth of 20.
This commit is contained in:
Thiago de Arruda
2014-06-20 10:53:05 -03:00
parent 09605cec03
commit ea7a389ec7
3 changed files with 226 additions and 8 deletions

View File

@@ -341,7 +341,7 @@ String cstr_to_string(const char *str)
};
}
static bool object_to_vim(Object obj, typval_T *tv, Error *err)
bool object_to_vim(Object obj, typval_T *tv, Error *err)
{
tv->v_type = VAR_UNKNOWN;
tv->v_lock = 0;