1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Aidan MacDonald 2022-04-16 12:13:19 +01:00
parent d55dceff37
commit 3fcdadce24
6 changed files with 359 additions and 2 deletions

View file

@ -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 */