summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-24 17:28:48 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-26 15:11:48 +0200
commitdaee9caa94e239ebbe3e7d4c8dfc891cc23822e4 (patch)
tree9b8b7cc180234587d4d2e91deeae652d4458a7d5
parent0e3876dbb87a44e6690a7fa003659b13601b6c5a (diff)
downloadefl-daee9caa94e239ebbe3e7d4c8dfc891cc23822e4.tar.gz
eolian: pass unit to all_classes_get
-rw-r--r--src/bindings/luajit/eolian.lua6
-rw-r--r--src/lib/eolian/Eolian.h3
-rw-r--r--src/lib/eolian/database_class_api.c2
-rw-r--r--src/lib/eolian/database_validate.c3
4 files changed, 8 insertions, 6 deletions
diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua
index f4d62850b8..c8cb85a809 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -237,7 +237,7 @@ ffi.cdef [[
const char *eolian_class_name_get(const Eolian_Class *klass);
Eina_Iterator *eolian_class_namespaces_get(const Eolian_Class *klass);
Eolian_Class_Type eolian_class_type_get(const Eolian_Class *klass);
- Eina_Iterator *eolian_all_classes_get(void);
+ Eina_Iterator *eolian_all_classes_get(const Eolian_Unit *unit);
const Eolian_Documentation *eolian_class_documentation_get(const Eolian_Class *klass);
const char *eolian_class_legacy_prefix_get(const Eolian_Class *klass);
const char *eolian_class_eo_prefix_get(const Eolian_Class *klass);
@@ -1020,9 +1020,9 @@ M.class_get_by_file = function(unit, fname)
return v
end
-M.all_classes_get = function()
+M.all_classes_get = function(unit)
return Ptr_Iterator("const Eolian_Class*",
- eolian.eolian_all_classes_get())
+ eolian.eolian_all_classes_get(unit))
end
M.class_type = {
diff --git a/src/lib/eolian/Eolian.h b/src/lib/eolian/Eolian.h
index 89cb7ef8a2..266abed438 100644
--- a/src/lib/eolian/Eolian.h
+++ b/src/lib/eolian/Eolian.h
@@ -592,11 +592,12 @@ EAPI Eolian_Class_Type eolian_class_type_get(const Eolian_Class *klass);
/*
* @brief Returns an iterator to all the classes stored into the database.
*
+ * @param[in] unit the unit to look in
* @return the iterator
*
* @ingroup Eolian
*/
-EAPI Eina_Iterator *eolian_all_classes_get(void);
+EAPI Eina_Iterator *eolian_all_classes_get(const Eolian_Unit *unit);
/*
* @brief Returns the documentation of a class.
diff --git a/src/lib/eolian/database_class_api.c b/src/lib/eolian/database_class_api.c
index 674ceefd69..68e9338283 100644
--- a/src/lib/eolian/database_class_api.c
+++ b/src/lib/eolian/database_class_api.c
@@ -60,7 +60,7 @@ eolian_class_type_get(const Eolian_Class *cl)
}
EAPI Eina_Iterator *
-eolian_all_classes_get(void)
+eolian_all_classes_get(const Eolian_Unit *unit EINA_UNUSED)
{
return (_classes ? eina_hash_iterator_data_new(_classes) : NULL);
}
diff --git a/src/lib/eolian/database_validate.c b/src/lib/eolian/database_validate.c
index 2b31d712d6..0b2c0ce155 100644
--- a/src/lib/eolian/database_validate.c
+++ b/src/lib/eolian/database_validate.c
@@ -324,7 +324,8 @@ database_validate()
{
const Eolian_Class *cl;
- Eina_Iterator *iter = eolian_all_classes_get();
+ /* FIXME: pass unit properly */
+ Eina_Iterator *iter = eolian_all_classes_get(NULL);
EINA_ITERATOR_FOREACH(iter, cl)
if (!_validate_class(cl))
{