5d0f262073
As a step toward non-blocking JSON RPC client change the the way we retrive the response. Now we retrive full response by calling spdk_jsonrpc_client_recv_response(). If response is ready it will be parsed to spdk_jsonrpc_client_response object then user can issue spdk_jsonrpc_client_get_response() to get the response object. When processing response object is done the user calls spdk_jsonrpc_client_free_response() to free it. This logic will simplify both non-blocking mode and multiple response handling. Change-Id: I737d8a34283f4a68795d6bc6ba0c8646b7ae3319 Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https://review.gerrithub.io/429262 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
rpc_client_test.c | ||
rpc_client.sh |