diff options
Diffstat (limited to 'apps/plugin.c')
-rw-r--r-- | apps/plugin.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 3e099253dc..286c36cfb7 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) |