--- libaitrpc/inc/aitrpc_cli.h 2015/07/02 22:28:14 1.2 +++ libaitrpc/inc/aitrpc_cli.h 2024/12/09 13:41:57 1.3.4.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitrpc_cli.h,v 1.2 2015/07/02 22:28:14 misho Exp $ +* $Id: aitrpc_cli.h,v 1.3.4.1 2024/12/09 13:41:57 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2015 +Copyright 2004 - 2024 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -68,6 +68,10 @@ typedef struct { /* ----------------------------------------------------------------------- */ +#ifdef __cplusplus +extern "C" { +#endif + /* Error support functions */ // rpc_GetErrno() Get error code of last operation @@ -229,7 +233,7 @@ int rpc_pkt_Receive(int sock, int type, sockaddr_t * _ * @sess = RPC session info * @tag = Function tag for execution * @vars = Function argument array of values, may be NULL - * @noreply = We not want RPC reply + * @noreply = >0 We not want RPC reply, -1 IPC request with reply * @nocrc = Without CRC calculation * @seq = Sign packet with seq.no * return: -1 error or != -1 prepared bytes into packet @@ -252,7 +256,7 @@ int rpc_pkt_Replay(ait_val_t * __restrict pkt, rpc_ses * rpc_cli_execCall() - Execute RPC call * * @cli = RPC Client session - * @noreply = We not want RPC reply + * @noreply = >0 We not want RPC reply, -1 IPC request with reply * @tag = Function tag for execution * @in_vars = IN function argument array of values, may be NULL * @out_vars = OUT returned array of rpc values, if !=NULL must be free after use with ait_freeVars() @@ -330,5 +334,8 @@ rpc_cli_t *rpc_cli_openClientExt(u_char InstID, int ne */ void rpc_cli_closeClientExt(rpc_cli_t ** __restrict cli); +#ifdef __cplusplus +} +#endif #endif