Use snx_swipc(target CTR ROOT ... FILES ...) in CMake or:
swipc --ctr --root src/3ds --out GENERATED services/srv.swipc services/fs.swipc
The output directory must exist. Schemas live beside service C files. Include
services/name.swipc.inc only in the C file defining its static typed handlers;
other translation units include the generated .h.
u32, u64, word-sized bytes<N>, one pid input, and copy/move handle
outputs. Raw words follow declaration order, with no NX alignment sorting
or 64-bit alignment padding. Named aliases resolve to the same concrete types.uint32_t interface_Command(SnxCtrIpc*, arguments...).
A PID parameter is uint32_t; scalar outputs are pointers, byte arrays use
byte pointers, and the return value is the service result. Non-return outcomes
are explicit context states, not successful responses.@stub, @unsorted, @fallback
are refused. Unspecified commands stop; there is no default successful stub.Made from docs/platforms/3ds/ipc.md at 69237645142c. GPL-3.0-or-later.