Section 5 Specifications of a Config File
Rev. 1.01 Mar. 17, 2008 Page 45 of 128
REJ10J1822-0101
5.6.3 CLNT_CALLCHK
Format:
CLNT_CALLCHK;
Description:
RPCGEN creates the following code in <config file>_clnt.c to facilitate saving of the return values
of RPC calls (rpc_call() or rpc_call_copycbk()) and outputs the API of *rpc_retval_adr() in
<config file>_clnt.h.
*rpc_retval_adr() = rpc_call(...);
rpc_retval_adr() must be implemented by the user. If this definition is omitted, the following code,
which discards the return value of an RPC call, will be created.
rpc_call(...);
For how to implement rpc_retval_adr(), refer to section 8.8, rpc_retval_adr().
Example:
CLNT_CALLCHK;