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

Function ndmuInit

libctru/source/services/ndm.c:16–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14static int ndmuRefCount;
15
16Result ndmuInit(void)
17{
18 Result ret=0;
19
20 if (AtomicPostIncrement(&ndmuRefCount)) return 0;
21
22 ret = srvGetServiceHandle(&ndmuHandle, "ndm:u");
23 if (R_FAILED(ret)) AtomicDecrement(&ndmuRefCount);
24
25 return ret;
26}
27
28void ndmuExit(void)
29{

Callers 1

udsInitFunction · 0.85

Calls 1

srvGetServiceHandleFunction · 0.85

Tested by

no test coverage detected