9 #include "../services/applet.h"
10 #include "../services/acc.h"
AppletId
AppletId.
Definition: applet.h:91
Result libappletArgsPush(LibAppletArgs *a, AppletHolder *h)
Sets the tick field in LibAppletArgs, then creates a storage with it which is pushed to the AppletHol...
Result libappletStart(AppletHolder *h)
If the flag from libappletSetJumpFlag is set, this just uses appletHolderJump.
void libappletArgsCreate(LibAppletArgs *a, u32 version)
Creates a LibAppletArgs struct.
Result libappletRequestJumpToStory(AccountUid uid, u64 application_id)
Wrapper for appletPushToGeneralChannel, see appletPushToGeneralChannel regarding the requirements for...
Result libappletPopOutData(AppletHolder *h, void *buffer, size_t size, size_t *transfer_size)
Pops a storage via appletHolderPopOutData, uses libappletReadStorage, then closes the storage.
Result libappletReadStorage(AppletStorage *s, void *buffer, size_t size, size_t *transfer_size)
Reads data from offset 0 from the specified storage into the buffer.
Result libappletArgsPop(LibAppletArgs *a)
Uses appletPopInData and reads it to the specified LibAppletArgs.
Result libappletRequestHomeMenu(void)
Wrapper for appletPushToGeneralChannel, see appletPushToGeneralChannel regarding the requirements for...
void libappletSetJumpFlag(bool flag)
Sets whether libappletStart uses appletHolderJump.
Result libappletPushInData(AppletHolder *h, const void *buffer, size_t size)
Creates a storage using the input buffer which is pushed to the AppletHolder via appletHolderPushInDa...
Result libappletRequestJumpToSystemUpdate(void)
Wrapper for appletPushToGeneralChannel, see appletPushToGeneralChannel regarding the requirements for...
void libappletArgsSetPlayStartupSound(LibAppletArgs *a, bool flag)
Sets the PlayStartupSound field in LibAppletArgs.
Result libappletCreateWriteStorage(AppletStorage *s, const void *buffer, size_t size)
Creates an AppletStorage with the specified size and writes the buffer contents to that storage at of...
Result libappletLaunch(AppletId id, LibAppletArgs *commonargs, const void *arg, size_t arg_size, void *reply, size_t reply_size, size_t *out_reply_size)
Creates a LibraryApplet with the specified input storage data, uses libappletStart,...
Result libappletRequestToLaunchApplication(u64 application_id, AccountUid uid, const void *buffer, size_t size, u32 sender)
Wrapper for appletPushToGeneralChannel, see appletPushToGeneralChannel regarding the requirements for...
Account UserId.
Definition: acc.h:25
LibraryApplet state.
Definition: applet.h:241
applet IStorage
Definition: applet.h:235
CommonArguments.
Definition: libapplet.h:13
u8 PlayStartupSound
bool flag, default is false.
Definition: libapplet.h:19
u32 LaVersion
LibraryApplet API version.
Definition: libapplet.h:17
u64 tick
System tick. Set to the output from armGetSystemTick during libappletArgsPush.
Definition: libapplet.h:21
s32 ExpectedThemeColor
Set to the output from appletGetThemeColorType by libappletArgsCreate.
Definition: libapplet.h:18
u32 CommonArgs_size
Size of this struct.
Definition: libapplet.h:15
u32 CommonArgs_version
libappletArgsCreate sets this to 1, and libappletArgsPop requires value 1. v0 is not supported.
Definition: libapplet.h:14
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
u32 Result
Function error code result type.
Definition: types.h:44
int32_t s32
32-bit signed integer.
Definition: types.h:27
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21