WFSSegmentBuffer

Definition

#include <nitro/wfs.h>

typedef struct WFSSegmentBuffer
{
    u32     offset;
    u32     length;
    void   *buffer;
}
WFSSegmentBuffer;

Elements

offset Address of the data to read within the device.
length Size of data to be read.
buffer Buffer where the read data is stored.

If this member is NULL, indicates that the specified data segment will be needed later on.
Although it is not necessary to prepare associated data inside a callback at this time, an event callback with the same content will be notified again later, so the appropriate data must be prepared before that time.

If this member is not NULL, the specified data segment is actually required.
You must prepare the corresponding data, store it in the buffer pointed to by this member, and return.
If the data being requested here has not been prepared, replace this member with NULL and return.
Notification of an event callback with the same content will be made again later, so the data must be prepared before that time.

Description

This data structure represents data segment information that is passed as an argument of the WFS_EVENT_SERVER_SEGMENT_REQUEST event notification.
In order to respond to read requests from a child (client), the parent (server) must read the data in the region specified by this structure from the device.

See Also

WFS_CallServerPacketSendHook, WFS_CallServerPacketRecvHook, WFS_CallClientPacketSendHook, WFS_CallClientPacketRecvHook

Revision History

2007/06/06 Initial version.


CONFIDENTIAL