MCPcopy Create free account
hub / github.com/devkitPro/libctru / APT_GetLockHandle

Function APT_GetLockHandle

libctru/source/services/apt.c:938–949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936}
937
938Result APT_GetLockHandle(u16 flags, Handle* lockHandle)
939{
940 u32 cmdbuf[16];
941 cmdbuf[0]=IPC_MakeHeader(0x1,1,0); // 0x10040
942 cmdbuf[1]=flags;
943
944 Result ret = aptSendCommand(cmdbuf);
945 if (R_SUCCEEDED(ret))
946 *lockHandle = cmdbuf[5];
947
948 return ret;
949}
950
951Result APT_Initialize(NS_APPID appId, APT_AppletAttr attr, Handle* signalEvent, Handle* resumeEvent)
952{

Callers 1

aptInitFunction · 0.85

Calls 2

IPC_MakeHeaderFunction · 0.85
aptSendCommandFunction · 0.85

Tested by

no test coverage detected