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)
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 603feaa..5defce5 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -371,8 +371,8 @@ ffi.cdef [[
371 const Eolian_Variable *eolian_variable_constant_get_by_name(const Eolian_Unit *unit, const char *name); 371 const Eolian_Variable *eolian_variable_constant_get_by_name(const Eolian_Unit *unit, const char *name);
372 Eina_Iterator *eolian_variable_globals_get_by_file(const Eolian_Unit *unit, const char *fname); 372 Eina_Iterator *eolian_variable_globals_get_by_file(const Eolian_Unit *unit, const char *fname);
373 Eina_Iterator *eolian_variable_constants_get_by_file(const Eolian_Unit *unit, const char *fname); 373 Eina_Iterator *eolian_variable_constants_get_by_file(const Eolian_Unit *unit, const char *fname);
374 Eina_Iterator *eolian_variable_all_constants_get(void); 374 Eina_Iterator *eolian_variable_all_constants_get(const Eolian_Unit *unit);
375 Eina_Iterator *eolian_variable_all_globals_get(void); 375 Eina_Iterator *eolian_variable_all_globals_get(const Eolian_Unit *unit);
376 Eolian_Variable_Type eolian_variable_type_get(const Eolian_Variable *var); 376 Eolian_Variable_Type eolian_variable_type_get(const Eolian_Variable *var);
377 const Eolian_Documentation *eolian_variable_documentation_get(const Eolian_Variable *var); 377 const Eolian_Documentation *eolian_variable_documentation_get(const Eolian_Variable *var);
378 const char *eolian_variable_file_get(const Eolian_Variable *var); 378 const char *eolian_variable_file_get(const Eolian_Variable *var);
@@ -1384,14 +1384,14 @@ M.variable_constants_get_by_file = function(unit, fname)
1384 eolian.eolian_variable_constants_get_by_file(unit, fname)) 1384 eolian.eolian_variable_constants_get_by_file(unit, fname))
1385end 1385end
1386 1386
1387M.variable_all_constants_get = function() 1387M.variable_all_constants_get = function(unit)
1388 return Ptr_Iterator("const Eolian_Variable *", 1388 return Ptr_Iterator("const Eolian_Variable *",
1389 eolian.eolian_variable_all_constants_get()) 1389 eolian.eolian_variable_all_constants_get(unit))
1390end 1390end
1391 1391
1392M.variable_all_globals_get = function() 1392M.variable_all_globals_get = function(unit)
1393 return Ptr_Iterator("const Eolian_Variable *", 1393 return Ptr_Iterator("const Eolian_Variable *",
1394 eolian.eolian_variable_all_globals_get()) 1394 eolian.eolian_variable_all_globals_get(unit))
1395end 1395end
1396 1396
1397M.Variable = ffi.metatype("Eolian_Variable", { 1397M.Variable = ffi.metatype("Eolian_Variable", {