beautypg.com

Renesas Stub Generator V.1.00 User Manual

Page 130

background image

Section 11 Samples

Rev. 1.01 Mar. 17, 2008 Page 118 of 128

REJ10J1822-0101

__info.ulMarshallingType = 0UL;

__info.ulServerID = RPCSVR_ID_SMPL;

__info.ulServerVersion = RPCSVR_VERS_SMPL;

__info.ulServerProcedureID = RPC_SMPL_REF_SEM2;

__info.AckMode = RPC_ACK;

__info.pInputIOVectorTable = __input;

__info.ulInputIOVectorTableSize = sizeof(__input) / sizeof (IOVEC);

__info.pOutputIOVectorTable = __output;

__info.ulOutputIOVectorTableSize = sizeof(__output) / sizeof

(IOVEC);

__info.pulLastOutputIOVectorSize = &__ulLastOutputIOVectorSize;

__info.pulReturnValue = (UINT32 *)&ercd;

__input[ __ulInputParamCount ].pBaseAddress = &semid;

__input[ __ulInputParamCount++ ].ulSize = sizeof(ID);

__output[ __ulOutputParamCount ].pBaseAddress = (UINT8 *)(pk_rsem);

__output[ __ulOutputParamCount++ ].ulSize = sizeof(*pk_rsem);

*rpc_retval_adr() = rpc_call( &__info );

return ercd;

}

INT32 rpcclnt_SMPL_init ( UINT32 __ulRPCServerID, UINT32

__ulRPCServerVersion )

{

return rpc_connect( RPCSVR_ID_SMPL, RPCSVR_VERS_SMPL );

}

INT32 rpcclnt_SMPL_shutdown ( UINT32 __ulRPCServerID, UINT32

__ulRPCServerVersion )

{

return rpc_disconnect( RPCSVR_ID_SMPL, RPCSVR_VERS_SMPL, NULL, 0UL

);

This manual is related to the following products: