# MBFakeScanCallbackFunc

## Definitions

      #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 is discovered and the parent information is 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 MB_SetUserVolatData function is called frequently by the parent, it is possible to obtain the latest data by calling MB_GetUserVolatData from within the callback by the child.
MB_FAKESCAN_PARENT_LOST | Reports that a parent is lost or that parent information is invalidated.
MB_FAKESCAN_API_ERROR | Reports that wireless communications cannot be used or that an error occurred because scanning is impossible.
MB_FAKESCAN_END_SCAN | The callback that reports that scanning was ended by `MB_FakeEndScan`.
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 announce the status between the time the `MB_FakeStartScanParent` function begins scanning for multiboot parents and the time the `MB_FakeEndScan` function stops scanning.

## See Also

`MB_FakeStartScanParent, MB_FakeEndScan, MBFakeScanCallback, MBFakeScanErrorCallback`

## Revision History

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

CONFIDENTIAL