List of Multi-boot Library (MB) API Functions

Initialization

MB_Init Initializes the library.
MB_End Ends the library. The wireless library reverts to the state before initialization.
MB_EndToIdle Ends the library. The wireless library changes to the IDLE state.
MB_GetParentSystemBufSize Obtains the size of the work memory used by MB.
MB_GetTgid Obtains TGID specified at the time of initialization.

Child (After Multi-boot)

MB_IsMultiBootChild Determines whether the program itself is a multi-boot child.
MB_GetMultiBootParentBssDesc Gets the multi-boot parent information.
MB_ReadMultiBootParentBssDesc Obtains the information for the WM_StartConnect function based on the multiboot parent information.

Parent

MB_SetParentCommSize Sets the communication data size of the parent.
MB_SetParentCommParam Sets the communication data size of the parent and the maximum number of children to be connected.
MB_StartParent Starts processing as a multi-boot parent.
MB_StartParentFromIdle Starts processing as a multi-boot parent with the wireless library in the IDLE state.
MB_CommGetChildrenNumber Gets the total number of connected children.
MB_CommGetChildUser Gets the connection information for the specified child.
MB_CommGetParentState Gets the state of the current parent.
MB_CommSetParentStateCallback Sets the callback function, which notifies you of changes to the parent state.
MB_GetSegmentLength Gets the segment length for the specified program.
MB_ReadSegment Gets the segment information from the specified program.
MB_RegisterFile Registers the specified program in the download process.
MB_UnregisterFile Specifies a registered program and releases from the download list.
MB_CommResponseRequest Transmits a response notice to the child that is requesting the connection.
MB_CommStartSending Transmits a download start notice to a specific child that has been granted the connection request.
MB_CommStartSendingAll Sends the download start notification to all of the children that have been granted the connection request.
MB_CommIsBootable Determines whether the specific child is bootable.
MB_CommBootRequest Sends the boot request to a specific bootable child.
MB_CommBootRequestAll Sends the boot request to all of the bootable children.
MB_DisconnectChild Forcibly disconnects a child device.

Fake Multiboot Child

MB_FakeInit Initializes a fake multiboot child.
MB_FakeEnd Ends a fake multiboot child process.
MB_FakeGetWorkSize Obtains the buffer size required for a fake multiboot child.
MB_FakeStartScanParent Begins scanning for a multiboot parent.
MB_FakeEndScan Ends scanning for a multiboot parent.
MB_FakeSetCStateCallback Sets a callback function that broadcasts the entry state to a multiboot parent.
MB_FakeEntryToParent Makes an entry to a multiboot parent.
MB_FakeGetParentGameInfo Obtains a scanned multiboot parent's game information.
MB_FakeGetParentBssDesc Obtains a scanned multiboot parent's connection information.
MB_FakeReadParentBssDesc Obtains a scanned multiboot parent's connection information, including flag or packet size settings.

Constants and Structures

MB_COMM_PARENT_* Constant that shows the range of the size that can be set for the communication by a multiboot parent.
MB_SEGMENT_BUFFER_MIN Constant that shows the minimum buffer size required for the MB_ReadSegment function.
MB_ICON_* Various constants that define the format of multiboot icons.
MB_GAME_* Various constants that define the format of multiboot game information.
MB_USER_* Various constants that define the format of multiboot user information.
MBErrorStatus Structure that is passed as the argument of the MB_COMM_PSTATE_ERROR callback.
MBErrCode Enumerator type that defines the error codes of the MB library.
MBCommPState The enumerator showing the parent state.
MBCommResponseRequestType Enumerator value for indicating the type of response to the child connection request.
MBCommPStateCallback The format of the callback function, which notifies you of changes to the parent state.
MBGameRegistry The structure showing game information registered in the download process.
MBIconInfo The structure showing the format of user icons.
MBUserInfo The structure showing user information.
MBParentBssDesc The structure showing connection information for the multi-boot parent.
MBGameInfo The structure showing a multiboot parent's game information.
MBFakeScanCallback The parent information structure that can be obtained with a parent scan callback.
MBFakeScanCallbackFunc The callback function by which the parent scan callback is notified.
MBFakeScanErrorCallback The error information structure notified as a callback argument if an error occurs during a parent scan.