eolian: rename all_files_parse functions

This commit is contained in:
Daniel Kolesa 2018-02-27 16:04:19 +01:00
parent 9f79d4ff22
commit b3596252eb
2 changed files with 47 additions and 32 deletions

View File

@ -546,6 +546,34 @@ EAPI Eina_Bool eolian_state_system_directory_add(Eolian_State *state);
*/
EAPI const Eolian_Unit *eolian_state_file_parse(Eolian_State *state, const char *filepath);
/*
* @brief Parse all known eo files.
*
* @param[in] state The Eolian state.
*
* @return EINA_TRUE on success, EINA_FALSE otherwise.
*
* @see eolian_state_directory_add
* @see eolian_state_all_eot_files_parse
*
* @ingroup Eolian
*/
EAPI Eina_Bool eolian_state_all_eo_files_parse(Eolian_State *state);
/*
* @brief Parse all known eot files.
*
* @param[in] state The Eolian state.
*
* @return EINA_TRUE on success, EINA_FALSE otherwise.
*
* @see eolian_state_directory_add
* @see eolian_state_all_eo_files_parse
*
* @ingroup Eolian
*/
EAPI Eina_Bool eolian_state_all_eot_files_parse(Eolian_State *state);
/*
* @brief Get an Eolian unit by file name.
*
@ -650,36 +678,6 @@ EAPI Eina_Iterator *eolian_all_eo_files_get(const Eolian_State *state);
*/
EAPI Eina_Iterator *eolian_all_eot_files_get(const Eolian_State *state);
/*
* @brief Force parsing of all the .eo files located in the directories
* given in eolian_directory_scan..
*
* @param[in] state The Eolian state.
*
* @return EINA_TRUE on success, EINA_FALSE otherwise.
*
* @see eolian_directory_scan
* @see eolian_all_eot_files_parse
*
* @ingroup Eolian
*/
EAPI Eina_Bool eolian_all_eo_files_parse(Eolian_State *state);
/*
* @brief Force parsing of all the .eot files located in the directories
* given in eolian_directory_scan..
*
* @param[in] state The Eolian state.
*
* @return EINA_TRUE on success, EINA_FALSE otherwise.
*
* @see eolian_directory_scan
* @see eolian_all_eo_files_parse
*
* @ingroup Eolian
*/
EAPI Eina_Bool eolian_all_eot_files_parse(Eolian_State *state);
/*
* @brief Gets a class by its name
*
@ -2671,6 +2669,11 @@ EAPI Eina_Bool eolian_system_directory_scan(Eolian_State *state);
/* DEPRECATED */
EAPI const Eolian_Unit *eolian_file_parse(Eolian_State *state, const char *filepath);
/* DEPRECATED */
EAPI Eina_Bool eolian_all_eo_files_parse(Eolian_State *state);
/* DEPRECATED */
EAPI Eina_Bool eolian_all_eot_files_parse(Eolian_State *state);
#endif

View File

@ -808,7 +808,7 @@ static Eina_Bool _tfile_parse(const Eina_Hash *hash EINA_UNUSED, const void *key
}
EAPI Eina_Bool
eolian_all_eot_files_parse(Eolian_State *state)
eolian_state_all_eot_files_parse(Eolian_State *state)
{
Parse_Data pd = { state, EINA_TRUE };
@ -824,6 +824,12 @@ eolian_all_eot_files_parse(Eolian_State *state)
return pd.ret;
}
EAPI Eina_Bool
eolian_all_eot_files_parse(Eolian_State *state)
{
return eolian_state_all_eot_files_parse(state);
}
static Eina_Bool _file_parse(const Eina_Hash *hash EINA_UNUSED, const void *key EINA_UNUSED, void *data, void *fdata)
{
Parse_Data *pd = fdata;
@ -837,7 +843,7 @@ static Eina_Bool _file_parse(const Eina_Hash *hash EINA_UNUSED, const void *key
}
EAPI Eina_Bool
eolian_all_eo_files_parse(Eolian_State *state)
eolian_state_all_eo_files_parse(Eolian_State *state)
{
Parse_Data pd = { state, EINA_TRUE };
@ -853,6 +859,12 @@ eolian_all_eo_files_parse(Eolian_State *state)
return pd.ret;
}
EAPI Eina_Bool
eolian_all_eo_files_parse(Eolian_State *state)
{
return eolian_state_all_eo_files_parse(state);
}
EAPI const Eolian_Unit *
eolian_state_unit_by_file_get(const Eolian_State *state, const char *file_name)
{