From d791d26b6b0c6ea277175868d1b2a986ddcb75cc Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sun, 4 Jan 2026 14:15:44 +0000 Subject: [PATCH] apps: remove lc_open_from_mem() from plugin API No plugin uses it and it doesn't work on hosted targets, which limits its utility. Change-Id: I5f29eec4dd11ffceb7be3e4d26e536483058055f --- apps/plugin.c | 1 - apps/plugin.h | 3 +-- docs/PLUGIN_API | 7 ------- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/apps/plugin.c b/apps/plugin.c index 98292c26e6..113bad7d26 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -533,7 +533,6 @@ static const struct plugin_api rockbox_api = { commit_discard_idcache, lc_open, - lc_open_from_mem, lc_get_header, lc_close, diff --git a/apps/plugin.h b/apps/plugin.h index 523e0cddd2..1402a9575c 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -178,7 +178,7 @@ int plugin_open(const char *plugin, const char *parameter); * when this happens please take the opportunity to sort in * any new functions "waiting" at the end of the list. */ -#define PLUGIN_API_VERSION 275 +#define PLUGIN_API_VERSION 276 /* 239 Marks the removal of ARCHOS HWCODEC and CHARCELL */ @@ -616,7 +616,6 @@ struct plugin_api { /* load code api for overlay */ void* (*lc_open)(const char *filename, unsigned char *buf, size_t buf_size); - void* (*lc_open_from_mem)(void* addr, size_t blob_size); void* (*lc_get_header)(void *handle); void (*lc_close)(void *handle); diff --git a/docs/PLUGIN_API b/docs/PLUGIN_API index 96c936fda1..26f7c1a643 100644 --- a/docs/PLUGIN_API +++ b/docs/PLUGIN_API @@ -1539,13 +1539,6 @@ void* lc_open(const char *filename, unsigned char *buf, size_t buf_size) \return \description -void* lc_open_from_mem(void* addr, size_t blob_size) - \group load code api for overlay - \param addr - \param blob_size - \return - \description - void led(bool on) \group misc \param on