q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=308a3d91a39d7d50eb09d77d4b92ef97adefc0ad

commit 308a3d91a39d7d50eb09d77d4b92ef97adefc0ad
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Thu May 25 15:18:57 2017 +0200

    eolian: use unit in all getters for typedecls
---
 src/lib/eolian/Eolian.h            | 9 ++++++---
 src/lib/eolian/database_type_api.c | 6 +++---
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/lib/eolian/Eolian.h b/src/lib/eolian/Eolian.h
index aa8d942d7a..54a46b84fc 100644
--- a/src/lib/eolian/Eolian.h
+++ b/src/lib/eolian/Eolian.h
@@ -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.
diff --git a/src/lib/eolian/database_type_api.c 
b/src/lib/eolian/database_type_api.c
index 4b16c5889f..ef9d397896 100644
--- a/src/lib/eolian/database_type_api.c
+++ b/src/lib/eolian/database_type_api.c
@@ -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);
 }

-- 


Reply via email to