From 14cfc65414387c96025f2dbbda332dcf1c404fcb Mon Sep 17 00:00:00 2001 From: Hristo Kovachev Date: Tue, 7 Feb 2006 14:46:03 +0000 Subject: 1. Updated battery_bench plugin: 1.1 Don't use the plugin_get_buffer() so the playlist viewer should work with this plugin running; 1.2 Added new columns for charger inserted, charging, usb powered; 1.3 Some other small improvements 2. charger_inserted() again returns only the AC/DC charger state on H3x0, doesn't include the usb state; 3. Some ifdefs corrected in power.c and power.h; git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8607 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index 3e09925..286c36c 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -54,6 +54,10 @@ #include "pcm_playback.h" #endif +#ifdef HAVE_CHARGING +#include "power.h" +#endif + #ifdef HAVE_LCD_BITMAP #include "peakmeter.h" #include "widgets.h" @@ -385,6 +389,16 @@ static const struct plugin_api rockbox_api = { lcd_bitmap_transparent, #endif memmove, +#ifdef HAVE_CHARGING + charger_inserted, +# ifdef HAVE_CHARGE_STATE + charging_state, +# endif +#endif +#ifdef HAVE_USB_POWER + usb_powered, +#endif + }; int plugin_load(const char* plugin, void* parameter) -- cgit v1.1