summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-25 15:18:57 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-30 17:15:54 +0200
commit308a3d91a39d7d50eb09d77d4b92ef97adefc0ad (patch)
tree62e588fd2ff2bc16734cba0e7b221a5d8314daa5
parent4f88aa424de73dfd7b45aa258c618972a534110e (diff)
downloadefl-308a3d91a39d7d50eb09d77d4b92ef97adefc0ad.tar.gz
eolian: use unit in all getters for typedecls
-rw-r--r--src/lib/eolian/Eolian.h9
-rw-r--r--src/lib/eolian/database_type_api.c6
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);
}