MPPortCallbackInfo

Definitions


#include <revolution/mp.h>

typedef struct MPPortCallbackInfo
{
    s32 result;
    s32 type;
    u32 port;
    u32 padding;

    union {
        MPPortCallbackInfo_Startup      startup;
        MPPortCallbackInfo_Cleanup      cleanup;
        MPPortCallbackInfo_DataReceived dataReceived;
        MPPortCallbackInfo_Connected    connected;
        MPPortCallbackInfo_Disconnected disconnected;

        u8  raw_binary[48];
    };
} MPPortCallbackInfo;

Description

The MPPortCallbackInfo structure is passed to the receive callback for the port.

Member Description
result This value must always be MP_RESULT_OK.
type Specifies the originator of the callback. This is the same as the MPCallbackType enumerator.
port Received port number.
The following members are valid only with suitable callbacks:
startup Stores result information of type MPPortCallbackInfo_Startup.
Meaningful data is not currently stored in this member.
cleanup Stores result information of type MPPortCallbackInfo_Cleanup.
Meaningful data is not currently stored in this member.
dataReceived Stores result information of type MPPortCallbackInfo_DataReceived.
connected Stores result information of type MPPortCallbackInfo_Connected.
disconnected Stores result information of type MPPortCallbackInfo_Disconnected.

See Also

MPPortCallback, MPCallbackType, MPPortCallbackInfo_DataReceived, MPPortCallbackInfo_Connected, MPPortCallbackInfo_Disconnected

Revision History

2007/11/28 Made revisions in conjunction with the addition of the MPCallbackType to the function reference.
2006/11/28 Initial version.


CONFIDENTIAL