--- libaitrpc/inc/aitrpc.h 2015/07/02 17:52:52 1.27.2.2 +++ libaitrpc/inc/aitrpc.h 2024/12/09 13:41:57 1.29.4.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitrpc.h,v 1.27.2.2 2015/07/02 17:52:52 misho Exp $ +* $Id: aitrpc.h,v 1.29.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 @@ -48,15 +48,6 @@ SUCH DAMAGE. #include -//#include -//#include -//#include -//#include -//#include -//#if !defined(__NetBSD__) -//#include -//#endif -//#include #include #include #include @@ -154,8 +145,21 @@ typedef int (*rpc_callback_t)(rpc_cli_t *, struct tagR #define RPC_CALL_STDARGS RPC_CALL_ARGS(cli, rpc, iv) +/* + * rpc_srv_DispatchSignal() - Enable/Disable Signal dispatcher for RPC scheduler + * + * @x = RPC server instance + * @y = Enable or =0 Disable + * return: 0 enabled signal dispatcher. See schedSignalDispatch() in libaitsched + */ +#define rpc_srv_DispatchSignal(x, y) schedSignalDispatch((x)->srv_root, (y)) + /* ----------------------------------------------------------------------- */ +#ifdef __cplusplus +extern "C" { +#endif + /* * rpc_register_srvPing() - Register ping service function * @@ -389,5 +393,17 @@ int rpc_srv_sendBLOB(rpc_cli_t * __restrict cli, rpc_b */ int rpc_srv_recvBLOB(rpc_cli_t * __restrict cli, rpc_blob_t * __restrict blob); + +/* + * rpc_srv_Return() - Prepare IPC return answer to RPC client + * + * @c = RPC client + * return: number of arguments in response + */ +int rpc_srv_Return(rpc_cli_t *c); + +#ifdef __cplusplus +} +#endif #endif