summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2021-10-22 23:17:33 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2021-10-22 23:17:33 -0400
commit789b2e089e72e3a6e61e40121e2efbb46723a1a9 (patch)
tree059c5cc78c2f3aa0b16818b5cb06c03d55ad249a
parentf4c7dc933d0df00c8ecc9308553a135a998399e2 (diff)
downloadrockbox-789b2e089e.tar.gz
rockbox-789b2e089e.tar.bz2
rockbox-789b2e089e.zip
plugin.h change plugin_open() path and parameter to const
it doesn't modify the args.. Change-Id: Ie8e1e36a060231c0137292c770e4f77da3b8203a
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 0193dc605e..d1f0348cc3 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -1013,7 +1013,7 @@ static void plugin_tsr(bool (*exit_callback)(bool))
pfn_tsr_exit = exit_callback; /* remember the callback for later */
}
-int plugin_open(char *plugin, char *parameter)
+int plugin_open(const char *plugin, const char *parameter)
{
open_plugin_add_path(ID2P(LANG_OPEN_PLUGIN), plugin, parameter);
return PLUGIN_GOTO_PLUGIN;
diff --git a/apps/plugin.h b/apps/plugin.h
index 023b442295..bd95331143 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -49,7 +49,7 @@
char* strncpy(char *, const char *, size_t);
void* plugin_get_buffer(size_t *buffer_size);
-int plugin_open(char *plugin, char *parameter);
+int plugin_open(const char *plugin, const char *parameter);
#ifndef __PCTOOL__
#include "config.h"
@@ -911,7 +911,7 @@ struct plugin_api {
void (*led)(bool on);
/*plugin*/
- int (*plugin_open)(char *path, char *parameter);
+ int (*plugin_open)(const char *path, const char *parameter);
void* (*plugin_get_buffer)(size_t *buffer_size);
void* (*plugin_get_audio_buffer)(size_t *buffer_size);
void (*plugin_release_audio_buffer)(void);