add constness

SVN revision: 31596
This commit is contained in:
Peter Wehrfritz 2007-09-02 12:21:00 +00:00
parent 6c1843903c
commit fbf7aaa1fb
2 changed files with 10 additions and 10 deletions

View File

@ -293,7 +293,7 @@ extern "C" {
/* /*
* Create a new path group * Create a new path group
*/ */
EAPI int ecore_path_group_new(char *group_name); EAPI int ecore_path_group_new(const char *group_name);
/* /*
* Destroy a previous path group * Destroy a previous path group
@ -303,17 +303,17 @@ extern "C" {
/* /*
* Add a directory to be searched for files * Add a directory to be searched for files
*/ */
EAPI void ecore_path_group_add(int group_id, char *path); EAPI void ecore_path_group_add(int group_id, const char *path);
/* /*
* Remove a directory to be searched for files * Remove a directory to be searched for files
*/ */
EAPI void ecore_path_group_remove(int group_id, char *path); EAPI void ecore_path_group_remove(int group_id, const char *path);
/* /*
* Find the absolute path if it exists in the group of paths * Find the absolute path if it exists in the group of paths
*/ */
EAPI char * ecore_path_group_find(int group_id, char *name); EAPI char * ecore_path_group_find(int group_id, const char *name);
/* /*
* Get a list of all the available files in a path set * Get a list of all the available files in a path set

View File

@ -3,7 +3,7 @@
static Ecore_List *group_list = NULL; static Ecore_List *group_list = NULL;
Ecore_Path_Group *__ecore_path_group_find(char *name); Ecore_Path_Group *__ecore_path_group_find(const char *name);
Ecore_Path_Group *__ecore_path_group_find_id(int id); Ecore_Path_Group *__ecore_path_group_find_id(int id);
/** /**
@ -21,7 +21,7 @@ Ecore_Path_Group *__ecore_path_group_find_id(int id);
* @ingroup Ecore_Path_Group * @ingroup Ecore_Path_Group
*/ */
EAPI int EAPI int
ecore_path_group_new(char *group_name) ecore_path_group_new(const char *group_name)
{ {
Ecore_Path_Group *last; Ecore_Path_Group *last;
Ecore_Path_Group *group; Ecore_Path_Group *group;
@ -90,7 +90,7 @@ ecore_path_group_del(int group_id)
* @ingroup Ecore_Path_Group * @ingroup Ecore_Path_Group
*/ */
EAPI void EAPI void
ecore_path_group_add(int group_id, char *path) ecore_path_group_add(int group_id, const char *path)
{ {
Ecore_Path_Group *group; Ecore_Path_Group *group;
@ -114,7 +114,7 @@ ecore_path_group_add(int group_id, char *path)
* @ingroup Ecore_Path_Group * @ingroup Ecore_Path_Group
*/ */
EAPI void EAPI void
ecore_path_group_remove(int group_id, char *path) ecore_path_group_remove(int group_id, const char *path)
{ {
char *found; char *found;
Ecore_Path_Group *group; Ecore_Path_Group *group;
@ -153,7 +153,7 @@ ecore_path_group_remove(int group_id, char *path)
* @ingroup Ecore_Path_Group * @ingroup Ecore_Path_Group
*/ */
EAPI char * EAPI char *
ecore_path_group_find(int group_id, char *name) ecore_path_group_find(int group_id, const char *name)
{ {
int r; int r;
char *p; char *p;
@ -262,7 +262,7 @@ ecore_path_group_available(int group_id)
* Find the specified group name * Find the specified group name
*/ */
Ecore_Path_Group * Ecore_Path_Group *
__ecore_path_group_find(char *name) __ecore_path_group_find(const char *name)
{ {
Ecore_Path_Group *group; Ecore_Path_Group *group;