ProcUIRegisterCallbackCore

Syntax

#include <cafe/procui.h>

typedef u32 (*ProcUICallbackFunction)(void*);

void ProcUIRegisterCallbackCore(
    ProcUIMessage           message,
    ProcUICallbackFunction  func,
    void*                   data,
    s32                     priority,
    int                     core
);

Parameters

message The message for which the callback is called.
func The function to be called.
data Data to be passed to the function.
priority Determines the order in which the callbacks are called. Low priority values are called first when the foreground is acquire and called last for all other callbacks.
core The core on which this callback is called.
NOTE:
Background callbacks are always called from Core 2.

Return Values

None.

Description

Registers a function to be called when a specific system message is received. You may specify the core on which the callback is called.

Your callback function must return 0 for success, nonzero for a user-defined error code.

Do Not Call From

Multiple threads This function is not thread-safe.

See Also

ProcUIClearCallbacks
ProcUIMessage

Revision History

2013/07/12 Specified return values for callback.
2013/07/01 Divided ProcUIRegisterCallback into 3 MAN pages.
2013/05/08 Automated cleanup pass.
2012/08/21 Cleanup Pass
2012/05/04 Initial version.


CONFIDENTIAL