--- libaitrpc/inc/aitrpc.h 2015/07/02 22:28:14 1.28 +++ libaitrpc/inc/aitrpc.h 2024/03/20 17:32:30 1.29 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitrpc.h,v 1.28 2015/07/02 22:28:14 misho Exp $ +* $Id: aitrpc.h,v 1.29 2024/03/20 17:32:30 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,6 +145,15 @@ 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)) + /* ----------------------------------------------------------------------- */ /* @@ -388,6 +388,15 @@ int rpc_srv_sendBLOB(rpc_cli_t * __restrict cli, rpc_b * return: -1 error, 0 ok, >0 unreceived data from client, may be error? */ 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); #endif