forked from len0rd/rockbox
plugin.h change plugin_open() path and parameter to const
it doesn't modify the args.. Change-Id: Ie8e1e36a060231c0137292c770e4f77da3b8203a
This commit is contained in:
parent
f4c7dc933d
commit
789b2e089e
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue