2014-01-18 23:18:03 +01:00
|
|
|
#ifndef APT_H
|
|
|
|
#define APT_H
|
|
|
|
|
2014-01-20 22:10:09 +01:00
|
|
|
typedef enum{
|
|
|
|
APPID_HOMEMENU = 0x101, // Home Menu
|
|
|
|
APPID_CAMERA = 0x110, // Camera applet
|
|
|
|
APPID_WEB = 0x114, // Internet Browser
|
|
|
|
APPID_APPLICATION = 0x300, // Application
|
|
|
|
}NS_APPID; // cf http://3dbrew.org/wiki/NS#AppIDs
|
|
|
|
|
2014-02-01 19:56:36 +01:00
|
|
|
typedef enum{
|
|
|
|
APP_RUNNING,
|
|
|
|
APP_SUSPENDED,
|
|
|
|
APP_EXITING
|
|
|
|
}APP_STATUS;
|
|
|
|
|
2014-02-01 00:23:59 +01:00
|
|
|
extern Handle aptEvents[3];
|
|
|
|
|
2014-03-17 18:38:20 +01:00
|
|
|
Result aptInit(NS_APPID appID);
|
2014-02-01 13:27:52 +01:00
|
|
|
void aptExit();
|
2014-02-01 00:23:59 +01:00
|
|
|
void aptOpenSession();
|
|
|
|
void aptCloseSession();
|
|
|
|
void aptSetupEventHandler();
|
2014-02-01 19:56:36 +01:00
|
|
|
void aptSetStatus(APP_STATUS status);
|
|
|
|
APP_STATUS aptGetStatus();
|
2014-02-01 00:23:59 +01:00
|
|
|
|
|
|
|
Result APT_GetLockHandle(Handle* handle, u16 flags, Handle* lockHandle);
|
|
|
|
Result APT_Initialize(Handle* handle, NS_APPID appId, Handle* eventHandle1, Handle* eventHandle2);
|
|
|
|
Result APT_Enable(Handle* handle, u32 a);
|
|
|
|
Result APT_PrepareToJumpToHomeMenu(Handle* handle);
|
|
|
|
Result APT_JumpToHomeMenu(Handle* handle, u32 a, u32 b, u32 c);
|
|
|
|
Result APT_InquireNotification(Handle* handle, u32 appID, u8* signalType);
|
|
|
|
Result APT_NotifyToWait(Handle* handle, NS_APPID appID);
|
|
|
|
Result APT_AppletUtility(Handle* handle, u32* out, u32 a, u32 size1, u8* buf1, u32 size2, u8* buf2);
|
2014-02-01 13:27:52 +01:00
|
|
|
Result APT_GlanceParameter(Handle* handle, NS_APPID appID, u32 bufferSize, u32* buffer, u32* actualSize, u8* signalType);
|
|
|
|
Result APT_ReceiveParameter(Handle* handle, NS_APPID appID, u32 bufferSize, u32* buffer, u32* actualSize, u8* signalType);
|
|
|
|
Result APT_ReplySleepQuery(Handle* handle, NS_APPID appID, u32 a);
|
|
|
|
Result APT_PrepareToCloseApplication(Handle* handle, u8 a);
|
|
|
|
Result APT_CloseApplication(Handle* handle, u32 a, u32 b, u32 c);
|
2014-01-18 23:18:03 +01:00
|
|
|
|
|
|
|
#endif
|