# WFS_RegisterServerTable

## Syntax

  `#include <nitro/wfs.h>`
  `BOOL WFS_RegisterServerTable(WFSServerContext *context, MIDevice *device, u32 fatbase, u32 overlay);`

## Arguments

`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.

## Return Values

Returns `TRUE` if the ROM file table is correctly loaded and registered; otherwise, returns `FALSE`.

## Description

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.

## See Also

`WFS_InitServer`
`WFS_EndServer`
`WFS_ExecuteRomServerThread`

## Revision History

2007/06/14 Added a description of the `WFS_ExecuteRomServerThread` function.
2007/06/06 Initial version.

CONFIDENTIAL