add some const

SVN revision: 28222
This commit is contained in:
doursse 2007-02-03 17:59:05 +00:00 committed by doursse
parent 38c73581a5
commit ba652a103b
2 changed files with 4 additions and 4 deletions

View File

@ -317,7 +317,7 @@ extern "C" {
/* /*
* Load the specified plugin * Load the specified plugin
*/ */
EAPI Ecore_Plugin *ecore_plugin_load(int group_id, char *plugin); EAPI Ecore_Plugin *ecore_plugin_load(int group_id, const char *plugin);
/* /*
* Unload the specified plugin * Unload the specified plugin
@ -327,7 +327,7 @@ extern "C" {
/* /*
* Lookup the specified symbol for the plugin * Lookup the specified symbol for the plugin
*/ */
EAPI void *ecore_plugin_call(Ecore_Plugin * plugin, char *symbol_name); EAPI void *ecore_plugin_call(Ecore_Plugin * plugin, const char *symbol_name);
EAPI Ecore_List *ecore_plugin_get_available(int group_id); EAPI Ecore_List *ecore_plugin_get_available(int group_id);

View File

@ -20,7 +20,7 @@ static Ecore_List *loaded_plugins = NULL;
* @ingroup Ecore_Plugin * @ingroup Ecore_Plugin
*/ */
EAPI Ecore_Plugin * EAPI Ecore_Plugin *
ecore_plugin_load(int group_id, char *plugin_name) ecore_plugin_load(int group_id, const char *plugin_name)
{ {
char *path; char *path;
char temp[PATH_MAX]; char temp[PATH_MAX];
@ -97,7 +97,7 @@ ecore_plugin_unload(Ecore_Plugin *plugin)
* @ingroup Ecore_Plugin * @ingroup Ecore_Plugin
*/ */
EAPI void * EAPI void *
ecore_plugin_call(Ecore_Plugin *plugin, char *symbol_name) ecore_plugin_call(Ecore_Plugin *plugin, const char *symbol_name)
{ {
void *ret; void *ret;