diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-04-16 12:13:19 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-04-16 14:36:39 +0100 |
commit | 3fcdadce240d2227c1864f2a42a6ae0db1bb372c (patch) | |
tree | 61e9b1141f684b7e0ff61f05243ec82ef549e83f /apps/plugin.h | |
parent | d55dceff371c4080d179fb26e6f175927cc48768 (diff) | |
download | rockbox-3fcdadce240d2227c1864f2a42a6ae0db1bb372c.tar.gz rockbox-3fcdadce240d2227c1864f2a42a6ae0db1bb372c.zip |
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
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 5 |
1 files changed, 4 insertions, 1 deletions
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); | |||
156 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 156 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
157 | 157 | ||
158 | /* increase this every time the api struct changes */ | 158 | /* increase this every time the api struct changes */ |
159 | #define PLUGIN_API_VERSION 249 | 159 | #define PLUGIN_API_VERSION 250 |
160 | 160 | ||
161 | /* update this to latest version if a change to the api struct breaks | 161 | /* update this to latest version if a change to the api struct breaks |
162 | backwards compatibility (and please take the opportunity to sort in any | 162 | backwards compatibility (and please take the opportunity to sort in any |
@@ -937,6 +937,9 @@ struct plugin_api { | |||
937 | void (*queue_remove_from_head)(struct event_queue *q, long id); | 937 | void (*queue_remove_from_head)(struct event_queue *q, long id); |
938 | int (*core_set_keyremap)(struct button_mapping* core_keymap, int count); | 938 | int (*core_set_keyremap)(struct button_mapping* core_keymap, int count); |
939 | size_t (*plugin_reserve_buffer)(size_t buffer_size); | 939 | size_t (*plugin_reserve_buffer)(size_t buffer_size); |
940 | int (*path_strip_volume)(const char *name, const char **nameptr, bool greedy); | ||
941 | void (*sys_poweroff)(void); | ||
942 | void (*sys_reboot)(void); | ||
940 | }; | 943 | }; |
941 | 944 | ||
942 | /* plugin header */ | 945 | /* plugin header */ |