ProcUISetSaveCallback

Syntax

#include <cafe/procui.h>

typedef u32 (*ProcUISaveCallbackFunctionEx)(void*);

void ProcUISetSaveCallback(ProcUISaveCallbackFunctionEx  func,
                           void* data);

Parameters

func The function to be called.
data The data to be passed to the function.

Return Values

None.

Description

Registers a function to be called immediately before the foreground is released. ProcUISetSaveCallback is one of the functions to be exported, which makes it visible to the linker. At this time, you may use ProcUISetSaveCallback only as part of calling ProcUIInitEx.

You must supply a return value when returning from the callback function pointed to by ProcUISaveCallbackFunctionEx. If the code in your callback succeeds, you should return 0. If it fails, you should return a nonzero value. The value is returned in the callback thread.

IMPORTANT:
This function must call OSSavesDone_ReadyToRelease.

Do Not Call From

Multiple threads This function is not thread-safe.

Revision History

2013/05/08 Automated cleanup pass.
2012/05/04 Initial version.


CONFIDENTIAL