@@ -129,95 +129,99 @@ extern "C" {
129129 * @return Language value (See OSD_LANGUAGES above)
130130 */
131131extern int configGetLanguage (void );
132- extern int configGetLanguageWithIODriver (_io_driver * driver );
132+ static inline int configGetLanguageWithIODriver (const _io_driver * driver ) { return configGetLanguage (); }
133133
134134/** sets the default language of the ps2
135135 * @param language Language value (See OSD_LANGUAGES above)
136136 */
137137extern void configSetLanguage (int language );
138- extern void configSetLanguageWithIODriver (int language , _io_driver * driver );
139-
138+ static inline void configSetLanguageWithIODriver (int language , const _io_driver * driver ) { configSetLanguage (language ); }
140139
141140/** get the tv screen type the ps2 is setup for
142141 * @return 0 = 4:3; 1 = fullscreen; 2 = 16:9
143142 */
144143extern int configGetTvScreenType (void );
145- extern int configGetTvScreenTypeWithIODriver (_io_driver * driver );
144+ static inline int configGetTvScreenTypeWithIODriver (const _io_driver * driver ) { return configGetTvScreenType (); }
146145
147146/** set the tv screen type
148147 * @param screenType 0 = 4:3; 1 = fullscreen; 2 = 16:9
149148 */
150149extern void configSetTvScreenType (int screenType );
151- extern void configSetTvScreenTypeWithIODriver (int screenType , _io_driver * driver );
150+ static inline void configSetTvScreenTypeWithIODriver (int screenType , const _io_driver * driver ) { configSetTvScreenType ( screenType ); }
152151
153152/** gets the date display format
154153 * @return 0 = yyyy/mm/dd; 1 = mm/dd/yyyy; 2 = dd/mm/yyyy
155154 */
156155extern int configGetDateFormat (void );
157- extern int configGetDateFormatWithIODriver (_io_driver * driver );
156+ static inline int configGetDateFormatWithIODriver (const _io_driver * driver ) { return configGetDateFormat (); }
158157
159158/** sets the date display format
160159 * @param dateFormat 0 = yyyy/mm/dd; 1 = mm/dd/yyyy; 2 = dd/mm/yyyy
161160 */
162161extern void configSetDateFormat (int dateFormat );
163- extern void configSetDateFormatWithIODriver (int dateFormat , _io_driver * driver );
162+ static inline void configSetDateFormatWithIODriver (int dateFormat , const _io_driver * driver ) { configSetDateFormat ( dateFormat ); }
164163
165164/** gets the time display format
166165 * (whether 24hour time or not)
167166 * @return 0 = 24hour; 1 = 12hour
168167 */
169168extern int configGetTimeFormat (void );
170- extern int configGetTimeFormatWithIODriver (_io_driver * driver );
169+ static inline int configGetTimeFormatWithIODriver (const _io_driver * driver ) { return configGetTimeFormat (); }
171170
172171/** sets the time display format
173172 * (whether 24hour time or not)
174173 * @param timeFormat 0 = 24hour; 1 = 12hour
175174 */
176175extern void configSetTimeFormat (int timeFormat );
177- extern void configSetTimeFormatWithIODriver (int timeFormat , _io_driver * driver );
176+ static inline void configSetTimeFormatWithIODriver (int timeFormat , const _io_driver * driver ) { configSetTimeFormat ( timeFormat ); }
178177
179178/** get timezone
180179 * @return offset in minutes from GMT
181180 */
182181extern int configGetTimezone (void );
183- extern int configGetTimezoneWithIODriver (_io_driver * driver );
182+ static inline int configGetTimezoneWithIODriver (const _io_driver * driver ) { return configGetTimezone (); }
184183
185184/** set timezone
186185 * @param offset offset in minutes from GMT
187186 */
188187extern void configSetTimezone (int offset );
189- extern void configSetTimezoneWithIODriver (int timezoneOffset , _io_driver * driver , void ( * finishedCallback )( void ));
188+ static inline void configSetTimezoneWithIODriver (int offset , const _io_driver * driver , void * finishedCallback ) { configSetTimezone ( offset ); }
190189
191190/** checks whether the spdif is enabled or not
192191 * @return 1 = on; 0 = off
193192 */
194193extern int configIsSpdifEnabled (void );
195- extern int configIsSpdifEnabledWithIODriver (_io_driver * driver );
194+ static inline int configIsSpdifEnabledWithIODriver (const _io_driver * driver ) { return configIsSpdifEnabled (); }
196195
197196/** sets whether the spdif is enabled or not
198197 * @param enabled 1 = on; 0 = off
199198 */
200199extern void configSetSpdifEnabled (int enabled );
201- extern void configSetSpdifEnabledWithIODriver (int enabled , _io_driver * driver );
200+ static inline void configSetSpdifEnabledWithIODriver (int enabled , const _io_driver * driver ) { configSetSpdifEnabled ( enabled ); }
202201
203202/** checks whether daylight saving is currently set
204203 * @return 1 = on; 0 = off
205204 */
206205extern int configIsDaylightSavingEnabled (void );
207- extern int configIsDaylightSavingEnabledWithIODriver (_io_driver * driver );
206+ static inline int configIsDaylightSavingEnabledWithIODriver (const _io_driver * driver ) { return configIsDaylightSavingEnabled (); }
208207
209208/** sets daylight saving
210209 * @param enabled 1 = on; 0 = off
211210 */
212211extern void configSetDaylightSavingEnabled (int enabled );
213- extern void configSetDaylightSavingEnabledWithIODriver (int daylightSaving , _io_driver * driver , void ( * finishedCallback )( void ));
212+ static inline void configSetDaylightSavingEnabledWithIODriver (int enabled , const _io_driver * driver , void * finishedCallback ) { configSetDaylightSavingEnabled ( enabled ); }
214213
215214#ifndef OSD_CONFIG_NO_LIBCDVD
216215/** converts the time returned from the ps2's clock into GMT time
217216 * (ps2 clock is in JST time)
218217 */
219218extern void configConvertToGmtTime (sceCdCLOCK * time );
220- extern void configConvertToLocalTimeWithIODriver (sceCdCLOCK * time , _io_driver * driver );
219+
220+ /** converts the time returned from the ps2's clock into local time
221+ * (ps2 clock is in JST time)
222+ */
223+ extern void configConvertToLocalTime (sceCdCLOCK * time );
224+ static inline void configConvertToLocalTimeWithIODriver (sceCdCLOCK * time , const _io_driver * driver ) { configConvertToLocalTime (time ); }
221225#endif
222226
223227// Internal functions.
0 commit comments