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.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index 169ce06067..8991bd73ca 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -30,6 +30,8 @@
30#include "string.h" 30#include "string.h"
31#include "lcd.h" 31#include "lcd.h"
32 32
33#include "power.h"
34
33#include "ata.h" /* for volume definitions */ 35#include "ata.h" /* for volume definitions */
34 36
35extern char having_new_lcd; 37extern char having_new_lcd;
@@ -212,9 +214,13 @@ bool charging_state(void)
212 return false; 214 return false;
213} 215}
214 216
215bool charger_inserted(void) 217unsigned int power_input_status(void)
216{ 218{
217 return false; 219#ifdef HAVE_BATTERY_SWITCH
220 return POWER_INPUT_BATTERY;
221#else
222 return POWER_INPUT_NONE;
223#endif
218} 224}
219 225
220#ifdef HAVE_SPDIF_POWER 226#ifdef HAVE_SPDIF_POWER
@@ -241,6 +247,11 @@ bool usb_powered(void)
241} 247}
242 248
243#if CONFIG_CHARGING 249#if CONFIG_CHARGING
250bool charger_inserted(void)
251{
252 return false;
253}
254
244bool usb_charging_enable(bool on) 255bool usb_charging_enable(bool on)
245{ 256{
246 (void)on; 257 (void)on;