eolian: filename retrieval APIs are read only

This commit is contained in:
Daniel Kolesa 2017-12-15 16:12:14 +01:00
parent c8aa30e698
commit d624464ab4
2 changed files with 8 additions and 8 deletions

View File

@ -523,7 +523,7 @@ EAPI const Eolian_Unit *eolian_file_parse(Eolian *state, const char *filepath);
* *
* @ingroup Eolian * @ingroup Eolian
*/ */
EAPI Eina_Iterator *eolian_all_eo_file_paths_get(Eolian *state); EAPI Eina_Iterator *eolian_all_eo_file_paths_get(const Eolian *state);
/* /*
* @brief Get an iterator to all .eot file names with paths. * @brief Get an iterator to all .eot file names with paths.
@ -536,7 +536,7 @@ EAPI Eina_Iterator *eolian_all_eo_file_paths_get(Eolian *state);
* *
* @ingroup Eolian * @ingroup Eolian
*/ */
EAPI Eina_Iterator *eolian_all_eot_file_paths_get(Eolian *state); EAPI Eina_Iterator *eolian_all_eot_file_paths_get(const Eolian *state);
/* /*
* @brief Get an iterator to all .eo file names (without paths). * @brief Get an iterator to all .eo file names (without paths).
@ -549,7 +549,7 @@ EAPI Eina_Iterator *eolian_all_eot_file_paths_get(Eolian *state);
* *
* @ingroup Eolian * @ingroup Eolian
*/ */
EAPI Eina_Iterator *eolian_all_eo_files_get(Eolian *state); EAPI Eina_Iterator *eolian_all_eo_files_get(const Eolian *state);
/* /*
* @brief Get an iterator to all .eot file names (without paths). * @brief Get an iterator to all .eot file names (without paths).
@ -562,7 +562,7 @@ EAPI Eina_Iterator *eolian_all_eo_files_get(Eolian *state);
* *
* @ingroup Eolian * @ingroup Eolian
*/ */
EAPI Eina_Iterator *eolian_all_eot_files_get(Eolian *state); EAPI Eina_Iterator *eolian_all_eot_files_get(const Eolian *state);
/* /*
* @brief Scan the given directory (recursively) and search for .eo and * @brief Scan the given directory (recursively) and search for .eo and

View File

@ -813,28 +813,28 @@ eolian_all_eo_files_parse(Eolian *state)
} }
EAPI Eina_Iterator * EAPI Eina_Iterator *
eolian_all_eot_files_get(Eolian *state) eolian_all_eot_files_get(const Eolian *state)
{ {
if (!state) return NULL; if (!state) return NULL;
return eina_hash_iterator_key_new(state->filenames_eot); return eina_hash_iterator_key_new(state->filenames_eot);
} }
EAPI Eina_Iterator * EAPI Eina_Iterator *
eolian_all_eo_files_get(Eolian *state) eolian_all_eo_files_get(const Eolian *state)
{ {
if (!state) return NULL; if (!state) return NULL;
return eina_hash_iterator_key_new(state->filenames_eo); return eina_hash_iterator_key_new(state->filenames_eo);
} }
EAPI Eina_Iterator * EAPI Eina_Iterator *
eolian_all_eot_file_paths_get(Eolian *state) eolian_all_eot_file_paths_get(const Eolian *state)
{ {
if (!state) return NULL; if (!state) return NULL;
return eina_hash_iterator_data_new(state->filenames_eot); return eina_hash_iterator_data_new(state->filenames_eot);
} }
EAPI Eina_Iterator * EAPI Eina_Iterator *
eolian_all_eo_file_paths_get(Eolian *state) eolian_all_eo_file_paths_get(const Eolian *state)
{ {
if (!state) return NULL; if (!state) return NULL;
return eina_hash_iterator_data_new(state->filenames_eo); return eina_hash_iterator_data_new(state->filenames_eo);