Example #1
0
static RPC_Result_t RPC_BufferDelivery(PACKET_InterfaceType_t interfaceType, UInt8 index, PACKET_BufHandle_t dataBufHandle)
{
	if (interfaceType || index) { }  //fixes compiler warnings

	if(stEventCb)
		stEventCb((void*)dataBufHandle);
	else
		RPC_HandleEvent((void*)dataBufHandle);

	return RPC_RESULT_PENDING;
}
Example #2
0
static RPC_Result_t RPC_BufferDelivery(PACKET_InterfaceType_t interfaceType,
				       UInt8 index,
				       PACKET_BufHandle_t dataBufHandle)
{
	if (interfaceType || index) {
	}
	/*fixes compiler warnings */
	if (index == 0xCD)
		index = 0;

	if (RPC_IsRegisteredClient(index, dataBufHandle)) {
		RPC_PACKET_IncrementBufferRef(dataBufHandle, index);

		if (stEventCb)
			stEventCb((void *)dataBufHandle);
		else
			RPC_HandleEvent((void *)dataBufHandle);

		return RPC_RESULT_PENDING;
	}
	return RPC_RESULT_ERROR;
}