1 /*-------------------------------------------------------------
3 conf.h -- SYSCONF support
8 This software is provided 'as-is', without any express or implied
9 warranty. In no event will the authors be held liable for any
10 damages arising from the use of this software.
12 Permission is granted to anyone to use this software for any
13 purpose, including commercial applications, and to alter it and
14 redistribute it freely, subject to the following restrictions:
16 1. The origin of this software must not be misrepresented; you
17 must not claim that you wrote the original software. If you use
18 this software in a product, an acknowledgment in the product
19 documentation would be appreciated but is not required.
21 2. Altered source versions must be plainly marked as such, and
22 must not be misrepresented as being the original software.
24 3. This notice may not be removed or altered from any source
27 -------------------------------------------------------------*/
37 #define CONF_EBADFILE -0x6001
38 #define CONF_ENOENT -0x6002
39 #define CONF_ETOOBIG -0x6003
40 #define CONF_ENOTINIT -0x6004
41 #define CONF_ENOTIMPL -0x6005
42 #define CONF_EBADVALUE -0x6006
43 #define CONF_ENOMEM -0x6007
48 #endif /* __cplusplus */
90 CONF_SHUTDOWN_STANDBY
= 0,
107 CONF_LANG_JAPANESE
= 0,
114 CONF_LANG_SIMP_CHINESE
,
115 CONF_LANG_TRAD_CHINESE
,
125 CONF_SENSORBAR_BOTTOM
= 0,
129 #define CONF_PAD_MAX_REGISTERED 10
130 #define CONF_PAD_MAX_ACTIVE 4
132 typedef struct _conf_pad_device conf_pad_device
;
134 struct _conf_pad_device
{
139 typedef struct _conf_pads conf_pads
;
143 conf_pad_device registered
[CONF_PAD_MAX_REGISTERED
];
144 conf_pad_device active
[CONF_PAD_MAX_ACTIVE
];
145 conf_pad_device balance_board
;
146 conf_pad_device unknown
;
150 s32
CONF_GetLength(const char *name
);
151 s32
CONF_GetType(const char *name
);
152 s32
CONF_Get(const char *name
, void *buffer
, u32 length
);
153 s32
CONF_GetShutdownMode(void);
154 s32
CONF_GetIdleLedMode(void);
155 s32
CONF_GetProgressiveScan(void);
156 s32
CONF_GetEuRGB60(void);
157 s32
CONF_GetIRSensitivity(void);
158 s32
CONF_GetSensorBarPosition(void);
159 s32
CONF_GetPadSpeakerVolume(void);
160 s32
CONF_GetPadMotorMode(void);
161 s32
CONF_GetSoundMode(void);
162 s32
CONF_GetLanguage(void);
163 s32
CONF_GetCounterBias(u32
*bias
);
164 s32
CONF_GetScreenSaverMode(void);
165 s32
CONF_GetDisplayOffsetH(s8
*offset
);
166 s32
CONF_GetPadDevices(conf_pads
*pads
);
167 s32
CONF_GetNickName(u8
*nickname
);
168 s32
CONF_GetAspectRatio(void);
169 s32
CONF_GetEULA(void);
170 s32
CONF_GetParentalPassword(s8
*password
);
171 s32
CONF_GetParentalAnswer(s8
*answer
);
172 s32
CONF_GetWiiConnect24(void);
173 s32
CONF_GetRegion(void);
174 s32
CONF_GetArea(void);
175 s32
CONF_GetVideo(void);
179 #endif /* __cplusplus */