# MBFakeScanCallbackFunc

## Definition

      #include <nitro/mb/mb_fake_child.h>
      typedef void (*MBFakeScanCallbackFunc)( u16 type, void* arg );

## Arguments

Arguments | Description
type | These are the types of callbacks:
`MB_FAKESCAN_PARENT_FOUND` | Reports that a new parent was discovered and the parent information was updated.
`MB_FAKESCAN_PARENT_BEACON` | This notification is sent every time a beacon from a parent already discovered is received. It differs from `MB_FAKESCAN_PARENT_FOUND` in that notification is sent even when there has been no change in player information. If the parent calls the `MB_SetUserVolatData` function often, the child can obtain the most recent data by calling the `MB_GetUserVolatData` function within this callback.
`MB_FAKESCAN_PARENT_LOST` | Reports that a parent was lost or that parent information was invalidated.
MB_FAKESCAN_API_ERROR | Reports that wireless communications cannot be used or that an error occurred and scanning cannot continue.
MB_FAKESCAN_END_SCAN | Callback that reports that parent scanning was ended by the `MB_FakeEndScan` function.
arg | The pointers to the structures passed to the callback function.
The Type of Callback | The structure to be passed
MB_FAKESCAN_PARENT_FOUND MB_FAKESCAN_PARENT_BEACON MB_FAKESCAN_PARENT_LOST | `MBFakeScanCallback`*.
MB_FAKESCAN_API_ERROR | `MBFakeScanErrorCallback`*.
MB_FAKESCAN_END_SCAN | Always NULL.

## Return Values

None.

## Description

These are the callback types used to send notification of the scanning state after the `MB_FakeStartScanParent` function begins the scan for multiboot parents and until the `MB_FakeEndScan` function ends the scan.

## See Also

`MB_FakeStartScanParent
MB_FakeEndScan
MBFakeScanCallback
MBFakeScanErrorCallback`

## Revision History

2006/03/13 Added an item regarding MB_FAKESCAN_PARENT_BEACON.
2004/11/25 Initial version.

CONFIDENTIAL