

#include <nitro/wfs.h>BOOL WFS_RegisterServerTable(WFSServerContext *context, MIDevice *device, u32 fatbase, u32 overlay);context |
Pointer to the WFSServerContext structure. |
device |
Interface with the device storing the ROM image. |
fatbase |
Address within the device where the ROM image is located. |
overlay |
Internal device address at which the ROM image that includes the overlay to be merged is located. Specify the same value as fatbase if the overlay is not to be merged. |
Returns TRUE if the ROM file table is correctly loaded and registered; otherwise, returns FALSE.
Extracts the file table from a ROM image located on a device, and registers it in a WFS parent (server) context structure. All connected WFS children (clients) will automatically get this file table from the server.
If a read request for the ROM image registered with this function is issued from a child (client), notification of a WFS_EVENT_SERVER_SEGMENT_REQUEST event will be made. The application must handle the read request appropriately within the event callback.
If no special processing is required to set the file table or respond to a read request, a parent (server) process can be much more easily implemented using WFS_ExecuteRomServerThread instead of this function.
WFS_InitServer
WFS_EndServer
WFS_ExecuteRomServerThread
2007/06/14 Added a description of the WFS_ExecuteRomServerThread function.
2007/06/06 Initial version.
CONFIDENTIAL