summaryrefslogtreecommitdiff
path: root/uisimulator/common/stubs.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/common/stubs.c')
-rw-r--r--uisimulator/common/stubs.c39
1 files changed, 22 insertions, 17 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index 8991bd73ca..31278371ee 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -209,20 +209,6 @@ bool lcd_enabled(void)
209} 209}
210#endif 210#endif
211 211
212bool charging_state(void)
213{
214 return false;
215}
216
217unsigned int power_input_status(void)
218{
219#ifdef HAVE_BATTERY_SWITCH
220 return POWER_INPUT_BATTERY;
221#else
222 return POWER_INPUT_NONE;
223#endif
224}
225
226#ifdef HAVE_SPDIF_POWER 212#ifdef HAVE_SPDIF_POWER
227void spdif_power_enable(bool on) 213void spdif_power_enable(bool on)
228{ 214{
@@ -246,19 +232,38 @@ bool usb_powered(void)
246 return false; 232 return false;
247} 233}
248 234
235bool usb_charging_enable(bool on)
236{
237 (void)on;
238 return false;
239}
240#endif
241
249#if CONFIG_CHARGING 242#if CONFIG_CHARGING
250bool charger_inserted(void) 243bool charger_inserted(void)
251{ 244{
252 return false; 245 return false;
253} 246}
254 247
255bool usb_charging_enable(bool on) 248bool power_input_present(void)
256{ 249{
257 (void)on;
258 return false; 250 return false;
259} 251}
252
253unsigned int power_input_status(void)
254{
255#ifdef HAVE_BATTERY_SWITCH
256 return POWER_INPUT_BATTERY;
257#else
258 return POWER_INPUT_NONE;
260#endif 259#endif
261#endif 260}
261
262bool charging_state(void)
263{
264 return false;
265}
266#endif /* CONFIG_CHARGING */
262 267
263bool usb_inserted(void) 268bool usb_inserted(void)
264{ 269{