summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-18 16:34:58 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-30 17:15:53 +0200
commit83bf422159750680e0b7ae9add94ad7e4bd0edba (patch)
tree899ef7da14e9f698ce986c3ff05dd5e7a27a28bc /src/bindings
parentcee3b604a304cc2c6c2e27f75b56ac6914fa6aa9 (diff)
downloadefl-83bf422159750680e0b7ae9add94ad7e4bd0edba.tar.gz
eolian: make all variable lookups take unit
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/luajit/eolian.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua
index 603feaaebe..5defce5ef1 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -371,8 +371,8 @@ ffi.cdef [[
const Eolian_Variable *eolian_variable_constant_get_by_name(const Eolian_Unit *unit, const char *name);
Eina_Iterator *eolian_variable_globals_get_by_file(const Eolian_Unit *unit, const char *fname);
Eina_Iterator *eolian_variable_constants_get_by_file(const Eolian_Unit *unit, const char *fname);
- Eina_Iterator *eolian_variable_all_constants_get(void);
- Eina_Iterator *eolian_variable_all_globals_get(void);
+ Eina_Iterator *eolian_variable_all_constants_get(const Eolian_Unit *unit);
+ Eina_Iterator *eolian_variable_all_globals_get(const Eolian_Unit *unit);
Eolian_Variable_Type eolian_variable_type_get(const Eolian_Variable *var);
const Eolian_Documentation *eolian_variable_documentation_get(const Eolian_Variable *var);
const char *eolian_variable_file_get(const Eolian_Variable *var);
@@ -1384,14 +1384,14 @@ M.variable_constants_get_by_file = function(unit, fname)
eolian.eolian_variable_constants_get_by_file(unit, fname))
end
-M.variable_all_constants_get = function()
+M.variable_all_constants_get = function(unit)
return Ptr_Iterator("const Eolian_Variable *",
- eolian.eolian_variable_all_constants_get())
+ eolian.eolian_variable_all_constants_get(unit))
end
-M.variable_all_globals_get = function()
+M.variable_all_globals_get = function(unit)
return Ptr_Iterator("const Eolian_Variable *",
- eolian.eolian_variable_all_globals_get())
+ eolian.eolian_variable_all_globals_get(unit))
end
M.Variable = ffi.metatype("Eolian_Variable", {