summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorHristo Kovachev <bger@rockbox.org>2006-02-07 14:46:03 +0000
committerHristo Kovachev <bger@rockbox.org>2006-02-07 14:46:03 +0000
commit14cfc65414387c96025f2dbbda332dcf1c404fcb (patch)
treea1eb9021e4c737af31cdaf38fff43928e15551b8 /apps/plugin.h
parent88abdd97b25eb458466a84f614a518b7173265a8 (diff)
downloadrockbox-14cfc65414387c96025f2dbbda332dcf1c404fcb.tar.gz
rockbox-14cfc65414387c96025f2dbbda332dcf1c404fcb.zip
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
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 952bdc8846..3d9161a456 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -452,6 +452,17 @@ struct plugin_api {
452 int width, int height); 452 int width, int height);
453#endif 453#endif
454 void* (*memmove)(void *out, const void *in, size_t n); 454 void* (*memmove)(void *out, const void *in, size_t n);
455
456#ifdef HAVE_CHARGING
457 bool (*charger_inserted)(void);
458# ifdef HAVE_CHARGE_STATE
459 bool (*charging_state)(void);
460# endif
461#endif
462#ifdef HAVE_USB_POWER
463 bool (*usb_powered)(void);
464#endif
465
455}; 466};
456 467
457/* plugin header */ 468/* plugin header */