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

Function srvEnableNotification

libctru/source/srv.c:95–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95Result srvEnableNotification(Handle* semaphoreOut)
96{
97 Result rc = 0;
98 u32* cmdbuf = getThreadCommandBuffer();
99
100 cmdbuf[0] = IPC_MakeHeader(0x2,0,0);
101
102 rc = svcSendSyncRequest(srvHandle);
103 rc = R_SUCCEEDED(rc) ? cmdbuf[1] : rc;
104 if(semaphoreOut) *semaphoreOut = R_SUCCEEDED(rc) ? cmdbuf[3] : 0;
105
106 return rc;
107}
108
109Result srvRegisterService(Handle* out, const char* name, int maxSessions)
110{

Callers 1

aptExitFunction · 0.85

Calls 2

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85

Tested by

no test coverage detected