eolian: use unit in all getters for typedecls

This commit is contained in:
Daniel Kolesa 2017-05-25 15:18:57 +02:00
parent 4f88aa424d
commit 308a3d91a3
2 changed files with 9 additions and 6 deletions

View File

@ -1442,35 +1442,38 @@ EAPI Eina_Iterator *eolian_typedecl_enums_get_by_file(const Eolian_Unit *unit, c
/*
* @brief Get an iterator to all aliases in the Eolian database.
*
* @param[in] unit the unit to look in
* @return the iterator or NULL
*
* Thanks to internal caching, this is an O(1) operation.
*
* @ingroup Eolian
*/
EAPI Eina_Iterator *eolian_typedecl_all_aliases_get(void);
EAPI Eina_Iterator *eolian_typedecl_all_aliases_get(const Eolian_Unit *unit);
/*
* @brief Get an iterator to all structs in the Eolian database.
*
* @param[in] unit the unit to look in
* @return the iterator or NULL
*
* Thanks to internal caching, this is an O(1) operation.
*
* @ingroup Eolian
*/
EAPI Eina_Iterator *eolian_typedecl_all_structs_get(void);
EAPI Eina_Iterator *eolian_typedecl_all_structs_get(const Eolian_Unit *unit);
/*
* @brief Get an iterator to all enums in the Eolian database.
*
* @param[in] unit the unit to look in
* @return the iterator or NULL
*
* Thanks to internal caching, this is an O(1) operation.
*
* @ingroup Eolian
*/
EAPI Eina_Iterator *eolian_typedecl_all_enums_get(void);
EAPI Eina_Iterator *eolian_typedecl_all_enums_get(const Eolian_Unit *unit);
/*
* @brief Get the type of a type declaration.

View File

@ -79,19 +79,19 @@ eolian_typedecl_enums_get_by_file(const Eolian_Unit *unit EINA_UNUSED,
}
EAPI Eina_Iterator *
eolian_typedecl_all_aliases_get(void)
eolian_typedecl_all_aliases_get(const Eolian_Unit *unit EINA_UNUSED)
{
return (_aliases ? eina_hash_iterator_data_new(_aliases) : NULL);
}
EAPI Eina_Iterator *
eolian_typedecl_all_structs_get(void)
eolian_typedecl_all_structs_get(const Eolian_Unit *unit EINA_UNUSED)
{
return (_structs ? eina_hash_iterator_data_new(_structs) : NULL);
}
EAPI Eina_Iterator *
eolian_typedecl_all_enums_get(void)
eolian_typedecl_all_enums_get(const Eolian_Unit *unit EINA_UNUSED)
{
return (_enums ? eina_hash_iterator_data_new(_enums) : NULL);
}