From 3fcdadce240d2227c1864f2a42a6ae0db1bb372c Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 16 Apr 2022 12:13:19 +0100 Subject: plugins: Add multiboot select plugin This plugin provides a menu for easily editing the root redirect file on targets that support multiboot. You can select a new root from a list of Rockbox installations detected on the filesystem or remove all redirects to boot from the default location. To avoid searching the whole filesystem, only subdirectories of the volume roots are checked for valid installations. Only installations that are compatible with the current player will be displayed. Change-Id: I7dcbadfd97873b87817870e61d2ae37956d2da00 --- apps/plugin.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index 2e0ace2e48..1c3c59c6cc 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -156,7 +156,7 @@ int plugin_open(const char *plugin, const char *parameter); #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 249 +#define PLUGIN_API_VERSION 250 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -937,6 +937,9 @@ struct plugin_api { void (*queue_remove_from_head)(struct event_queue *q, long id); int (*core_set_keyremap)(struct button_mapping* core_keymap, int count); size_t (*plugin_reserve_buffer)(size_t buffer_size); + int (*path_strip_volume)(const char *name, const char **nameptr, bool greedy); + void (*sys_poweroff)(void); + void (*sys_reboot)(void); }; /* plugin header */ -- cgit v1.2.3