summaryrefslogtreecommitdiffstats
path: root/uisimulator/common
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-12-03 20:43:10 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-12-03 20:43:10 +0000
commitadd677fca8b9d42dfa013915db5c5f8bda5ca92b (patch)
tree368cbb6ec2920b16265f85f04a0fed2f45c40e90 /uisimulator/common
parent58eb784a5d1f0ac800e656d5dfa3a1bff8fb2657 (diff)
downloadrockbox-add677fca8b9d42dfa013915db5c5f8bda5ca92b.tar.gz
rockbox-add677fca8b9d42dfa013915db5c5f8bda5ca92b.tar.bz2
rockbox-add677fca8b9d42dfa013915db5c5f8bda5ca92b.zip
Fix some red. The stubs in bootloaders are giving some trouble.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19316 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common')
-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)
}
#endif
-bool charging_state(void)
-{
- return false;
-}
-
-unsigned int power_input_status(void)
-{
-#ifdef HAVE_BATTERY_SWITCH
- return POWER_INPUT_BATTERY;
-#else
- return POWER_INPUT_NONE;
-#endif
-}
-
#ifdef HAVE_SPDIF_POWER
void spdif_power_enable(bool on)
{
@@ -246,19 +232,38 @@ bool usb_powered(void)
return false;
}
+bool usb_charging_enable(bool on)
+{
+ (void)on;
+ return false;
+}
+#endif
+
#if CONFIG_CHARGING
bool charger_inserted(void)
{
return false;
}
-bool usb_charging_enable(bool on)
+bool power_input_present(void)
{
- (void)on;
return false;
}
+
+unsigned int power_input_status(void)
+{
+#ifdef HAVE_BATTERY_SWITCH
+ return POWER_INPUT_BATTERY;
+#else
+ return POWER_INPUT_NONE;
#endif
-#endif
+}
+
+bool charging_state(void)
+{
+ return false;
+}
+#endif /* CONFIG_CHARGING */
bool usb_inserted(void)
{