libctru  v2.4.1
3ds.h
Go to the documentation of this file.
1 /**
2  * @file 3ds.h
3  * @brief Central 3DS header. Includes all others.
4  */
5 #pragma once
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11 #if defined(_3DS) && !defined(__3DS__)
12 #warning "Please update your Makefile and replace -DARM11 -D_3DS with -D__3DS__"
13 #define __3DS__
14 #endif
15 
16 //might be missing some
17 #include <3ds/types.h>
18 #include <3ds/result.h>
19 #include <3ds/ipc.h>
20 #include <3ds/svc.h>
21 #include <3ds/exheader.h>
22 #include <3ds/srv.h>
23 #include <3ds/errf.h>
24 #include <3ds/os.h>
25 #include <3ds/synchronization.h>
26 #include <3ds/thread.h>
27 #include <3ds/gfx.h>
28 #include <3ds/console.h>
29 #include <3ds/env.h>
30 #include <3ds/util/decompress.h>
31 #include <3ds/util/utf.h>
32 
33 #include <3ds/allocator/linear.h>
34 #include <3ds/allocator/mappable.h>
35 #include <3ds/allocator/vram.h>
36 
37 #include <3ds/services/ac.h>
38 #include <3ds/services/am.h>
39 #include <3ds/services/ampxi.h>
40 #include <3ds/services/apt.h>
41 #include <3ds/services/boss.h>
42 #include <3ds/services/cam.h>
43 #include <3ds/services/cfgnor.h>
44 #include <3ds/services/cfgu.h>
45 #include <3ds/services/csnd.h>
46 #include <3ds/services/dsp.h>
47 #include <3ds/services/fs.h>
48 #include <3ds/services/fspxi.h>
49 #include <3ds/services/fsreg.h>
50 #include <3ds/services/frd.h>
51 #include <3ds/services/gspgpu.h>
52 #include <3ds/services/gsplcd.h>
53 #include <3ds/services/hid.h>
54 #include <3ds/services/irrst.h>
55 #include <3ds/services/sslc.h>
56 #include <3ds/services/httpc.h>
57 #include <3ds/services/uds.h>
58 #include <3ds/services/ndm.h>
59 #include <3ds/services/nim.h>
60 #include <3ds/services/nwmext.h>
61 #include <3ds/services/ir.h>
62 #include <3ds/services/ns.h>
63 #include <3ds/services/pmapp.h>
64 #include <3ds/services/pmdbg.h>
65 #include <3ds/services/ps.h>
66 #include <3ds/services/ptmu.h>
67 #include <3ds/services/ptmsysm.h>
68 #include <3ds/services/ptmgets.h>
69 #include <3ds/services/ptmsets.h>
70 #include <3ds/services/pxidev.h>
71 #include <3ds/services/pxipm.h>
72 #include <3ds/services/soc.h>
73 #include <3ds/services/mic.h>
74 #include <3ds/services/mvd.h>
75 #include <3ds/services/nfc.h>
76 #include <3ds/services/news.h>
77 #include <3ds/services/qtm.h>
78 #include <3ds/services/qtmc.h>
79 #include <3ds/services/srvpm.h>
80 #include <3ds/services/loader.h>
81 #include <3ds/services/y2r.h>
82 #include <3ds/services/mcuhwc.h>
83 #include <3ds/services/cdcchk.h>
84 
85 #include <3ds/gpu/gx.h>
86 #include <3ds/gpu/gpu.h>
87 #include <3ds/gpu/shbin.h>
88 #include <3ds/gpu/shaderProgram.h>
89 
90 #include <3ds/ndsp/ndsp.h>
91 #include <3ds/ndsp/channel.h>
92 
93 #include <3ds/applets/swkbd.h>
94 #include <3ds/applets/error.h>
95 
97 
98 #include <3ds/archive.h>
99 #include <3ds/romfs.h>
100 #include <3ds/font.h>
101 #include <3ds/mii.h>
102 
103 #include <3ds/gdbhio_dev.h>
104 #include <3ds/3dslink.h>
105 
106 #ifdef __cplusplus
107 }
108 #endif
109 /**
110  * @example app_launch/source/main.c
111  * @example audio/filters/source/main.c
112  * @example audio/mic/source/main.c
113  * @example audio/streaming/source/main.c
114  * @example camera/image/source/main.c
115  * @example camera/video/source/main.c
116  * @example get_system_language/source/main.c
117  * @example graphics/bitmap/24bit-color/source/main.c
118  * @example graphics/gpu/both_screens/source/main.c
119  * @example graphics/gpu/fragment_light/source/main.c
120  * @example graphics/gpu/geoshader/source/main.c
121  * @example graphics/gpu/gpusprites/source/main.c
122  * @example graphics/gpu/immediate/source/main.c
123  * @example graphics/gpu/lenny/source/main.c
124  * @example graphics/gpu/loop_subdivision/source/main.c
125  * @example graphics/gpu/mipmap_fog/source/main.c
126  * @example graphics/gpu/particles/source/main.c
127  * @example graphics/gpu/proctex/source/main.c
128  * @example graphics/gpu/simple_tri/source/main.c
129  * @example graphics/gpu/textured_cube/source/main.c
130  * @example graphics/gpu/toon_shading/source/main.c
131  * @example graphics/printing/both-screen-text/source/main.c
132  * @example graphics/printing/colored-text/source/main.c
133  * @example graphics/printing/hello-world/source/main.c
134  * @example graphics/printing/multiple-windows-text/source/main.c
135  * @example graphics/printing/system-font/source/main.c
136  * @example input/read-controls/source/main.c
137  * @example input/software-keyboard/source/main.c
138  * @example input/touch-screen/source/main.c
139  * @example libapplet_launch/source/main.c
140  * @example mvd/source/main.c
141  * @example network/boss/source/main.c
142  * @example network/http/source/main.c
143  * @example network/http_post/source/main.c
144  * @example network/sockets/source/sockets.c
145  * @example network/sslc/source/ssl.c
146  * @example network/uds/source/uds.c
147  * @example nfc/source/main.c
148  * @example qtm/source/main.c
149  * @example romfs/source/main.c
150  * @example sdmc/source/main.c
151  * @example threads/event/source/main.c
152  * @example threads/thread-basic/source/main.c
153  * @example time/rtc/source/main.c
154  */
AC service.
AM (Application Manager) service.
AMPXI service.
APT (Applet) service.
FS_Archive driver.
BOSS service, see also: https://www.3dbrew.org/wiki/BOSS_Services.
CAM service for using the 3DS's front and back cameras.
CODEC Hardware Check service.
CFGNOR service.
CFGU (Configuration) Service.
Functions for interacting with DSP audio channels.
3ds stdio support.
CSND service.
Decompression functions.
DSP Service to access the DSP processor commands (sound)
Homebrew environment information.
Error Display API.
Error applet.
NCCH extended header definitions.
Shared font support.
Friend Services.
Filesystem Services.
Service interface for PxiFS services.
Luma3DS GDB HIO (called File I/O in GDB documentation) devoptab wrapper.
Simple framebuffer API.
Barebones GPU communications driver.
GSPGPU service.
GSPLCD service.
GX commands.
HID service.
HTTP service.
Inter Process Communication helpers.
IR service.
IRRST service.
Linear memory allocator.
LOADER Service.
Mappable memory allocator.
mcuHwc service.
MIC (Microphone) service.
Shared Mii struct.
Mii Selector Applet (appletEd).
MVD service.
NDMU service.
Interface for Nintendo's default DSP component.
NEWS (Notification) service.
NFC service.
NIM (network installation management) service.
NS (Nintendo Shell) service.
OS related stuff.
PM (Process Manager) application service.
PM (Process Manager) debug service.
PS service.
PTMGETS service.
PTMSETS service.
PTMSYSM service.
PTMU service.
Gamecard PXI service.
Process Manager PXI service.
QTM services.
QTM Hardware Check service.
3DS result code tools
RomFS driver.
Functions for working with shaders.
Shader binary support.
SOC service for sockets communications.
Service API.
srv:pm service.
SSLC(TLS) service.
Syscall wrappers.
Software keyboard applet.
Provides synchronization locks.
Provides functions to use threads.
Various system types.
UDS(NWMUDS) local-WLAN service.
UTF conversion functions.
VRAM allocator.
Y2R service for hardware YUV->RGB conversions.