RTN_FN_GETPACKET

RTN_FN_GETPACKET is a pointer to an application function that returns a pointer to an application packet structure.

Syntax

PVOID (*RTN_FN_GETPACKET)(
	PVOID pAppContext,
	LONG length
);

Parameters

pAppContext

Application context pointer used as an argument in RtNalConfigureQueue.

length

Length required for the packet.

Return Value

Returns a pointer to an application packet structure if the function succeeds. Returns NULL if the function fails.

Remarks

An application callback RTN_FN_GETPACKET is called from RtnGetPacket from a device driver RtndReceive function to obtain the packet in which to copy received data. The application callback RTN_FN_DECODEPACKET is used to access the data area and length fields of the packet.

Requirements

Minimum Supported Version RTX64 4.0
Header rtnapi.h, RtNalApi.h
Library RtNal.lib

See Also: