apps: remove lc_open_from_mem() from plugin API

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit d791d26b6b0c6ea277175868d1b2a986ddcb75cc
Author: Aidan MacDonald <[email protected]>
Date:   Sun Jan 4 14:15:44 2026 +0000

    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

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
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.