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

Function ACU_CreateDefaultConfig

libctru/source/services/ac.c:47–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47Result ACU_CreateDefaultConfig(acuConfig* config)
48{
49 Result ret=0;
50 u32 *cmdbuf = getThreadCommandBuffer();
51 u32 *staticbufs = getThreadStaticBuffers();
52
53 cmdbuf[0] = IPC_MakeHeader(0x1,0,0); // 0x10000
54 staticbufs[0] = IPC_Desc_StaticBuffer(0x200, 0);
55 staticbufs[1] = (u32)config;
56
57 if(R_FAILED(ret = svcSendSyncRequest(acHandle))) return ret;
58
59 return (Result)cmdbuf[1];
60}
61
62Result ACU_ConnectAsync(const acuConfig* config, Handle connectionHandle)
63{

Callers

nothing calls this directly

Calls 4

getThreadCommandBufferFunction · 0.85
getThreadStaticBuffersFunction · 0.85
IPC_MakeHeaderFunction · 0.85
IPC_Desc_StaticBufferFunction · 0.85

Tested by

no test coverage detected