Section 11 Samples
Rev. 1.01 Mar. 17, 2008 Page 125 of 128
REJ10J1822-0101
pk_rsem = ( T_RSEM *)( __pInfo->pucParamArea +
__ulInputParamOffset);
ercd = ref_sem2( semid, pk_rsem );
__pInfo->pOutputIOVectorTable[ __ulOutputParamCount
].pBaseAddress = pk_rsem;
__pInfo->pOutputIOVectorTable[ __ulOutputParamCount++ ].ulSize =
sizeof(*pk_rsem);
__pInfo->ulOutputIOVectorTableSize = 1UL;
return ((UINT32)ercd);
}
static UINT32 (* const __rpcsvr_SMPL_StubTable[])(rpc_server_stub_info
*) =
{
rpcsvr_SMPL_atof,
rpcsvr_SMPL_atoi,
rpcsvr_SMPL_ref_tsk2,
rpcsvr_SMPL_ref_sem2,
};
INT32 rpcsvr_SMPL_init ( rpc_svr_config * __config )
{
rpc_server_info __server_info;
if ( __config == NULL)
{
return -1L;
}
__server_info.ulRPCServerID = RPCSVR_ID_SMPL;