summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
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 952bdc8..3d9161a 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -452,6 +452,17 @@ struct plugin_api {
int width, int height);
#endif
void* (*memmove)(void *out, const void *in, size_t n);
+
+#ifdef HAVE_CHARGING
+ bool (*charger_inserted)(void);
+# ifdef HAVE_CHARGE_STATE
+ bool (*charging_state)(void);
+# endif
+#endif
+#ifdef HAVE_USB_POWER
+ bool (*usb_powered)(void);
+#endif
+
};
/* plugin header */