--- libaitrpc/inc/aitrpc.h 2024/02/26 18:25:31 1.28.8.1 +++ libaitrpc/inc/aitrpc.h 2024/03/20 17:06:10 1.28.8.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitrpc.h,v 1.28.8.1 2024/02/26 18:25:31 misho Exp $ +* $Id: aitrpc.h,v 1.28.8.2 2024/03/20 17:06:10 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -48,15 +48,6 @@ SUCH DAMAGE. #include -//#include -//#include -//#include -//#include -//#include -//#if !defined(__NetBSD__) -//#include -//#endif -//#include #include #include #include @@ -153,6 +144,15 @@ typedef int (*rpc_callback_t)(rpc_cli_t *, struct tagR #define RPC_CALL_ARGS(arg1, arg2, arg3) rpc_cli_t* arg1, struct tagRPCCall* arg2, array_t* arg3 #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)) /* ----------------------------------------------------------------------- */