diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-06-22 07:16:31 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-06-22 07:16:31 +0000 |
commit | e61f6fa5995780054760b44b35ef4f4d4a35afed (patch) | |
tree | 15c6088c7ec50acbcd807cbff555399108281ad1 /apps | |
parent | 0907631464198e30235e1c628ba630bb73c498d2 (diff) | |
download | rockbox-e61f6fa5995780054760b44b35ef4f4d4a35afed.tar.gz rockbox-e61f6fa5995780054760b44b35ef4f4d4a35afed.zip |
Added reset_poweroff_timer(), which can be used to prevent idle poweroff. This is also available in the plugin API.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4787 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugin.c | 2 | ||||
-rw-r--r-- | apps/plugin.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index a990463b8c..b7646c021d 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -240,6 +240,8 @@ static struct plugin_api rockbox_api = { | |||
240 | #ifdef HAVE_LCD_CHARCELLS | 240 | #ifdef HAVE_LCD_CHARCELLS |
241 | lcd_icon, | 241 | lcd_icon, |
242 | #endif | 242 | #endif |
243 | |||
244 | reset_poweroff_timer, | ||
243 | }; | 245 | }; |
244 | 246 | ||
245 | int plugin_load(char* plugin, void* parameter) | 247 | int plugin_load(char* plugin, void* parameter) |
diff --git a/apps/plugin.h b/apps/plugin.h index ec16376b11..1405ba3924 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -276,6 +276,8 @@ struct plugin_api { | |||
276 | #ifdef HAVE_LCD_CHARCELLS | 276 | #ifdef HAVE_LCD_CHARCELLS |
277 | void (*lcd_icon)(int icon, bool enable); | 277 | void (*lcd_icon)(int icon, bool enable); |
278 | #endif | 278 | #endif |
279 | |||
280 | void (*reset_poweroff_timer)(void); | ||
279 | }; | 281 | }; |
280 | 282 | ||
281 | /* defined by the plugin loader (plugin.c) */ | 283 | /* defined by the plugin loader (plugin.c) */ |