summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-18 16:31:03 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-30 17:15:53 +0200
commit653cf6bac37f6d74bd18d1088a7fb2ce6d661bc2 (patch)
tree2c170fecf5775c030743ae621c634e3e2eae7683 /src/bindings
parent6d453bc6944897c6f0de34f3c7592f608061d320 (diff)
eolian: make by-name 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 d98e047..8177aa5 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -367,8 +367,8 @@ ffi.cdef [[
367 Eolian_Unary_Operator eolian_expression_unary_operator_get(const Eolian_Expression *expr); 367 Eolian_Unary_Operator eolian_expression_unary_operator_get(const Eolian_Expression *expr);
368 const Eolian_Expression *eolian_expression_unary_expression_get(const Eolian_Expression *expr); 368 const Eolian_Expression *eolian_expression_unary_expression_get(const Eolian_Expression *expr);
369 Eolian_Value_t eolian_expression_value_get(const Eolian_Expression *expr); 369 Eolian_Value_t eolian_expression_value_get(const Eolian_Expression *expr);
370 const Eolian_Variable *eolian_variable_global_get_by_name(const char *name); 370 const Eolian_Variable *eolian_variable_global_get_by_name(const Eolian_Unit *unit, const char *name);
371 const Eolian_Variable *eolian_variable_constant_get_by_name(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 char *fname); 372 Eina_Iterator *eolian_variable_globals_get_by_file(const char *fname);
373 Eina_Iterator *eolian_variable_constants_get_by_file(const char *fname); 373 Eina_Iterator *eolian_variable_constants_get_by_file(const char *fname);
374 Eina_Iterator *eolian_variable_all_constants_get(void); 374 Eina_Iterator *eolian_variable_all_constants_get(void);
@@ -1362,14 +1362,14 @@ M.Expression = ffi.metatype("Eolian_Expression", {
1362 } 1362 }
1363}) 1363})
1364 1364
1365M.variable_global_get_by_name = function(name) 1365M.variable_global_get_by_name = function(unit, name)
1366 local v = eolian.eolian_variable_global_get_by_name(name) 1366 local v = eolian.eolian_variable_global_get_by_name(unit, name)
1367 if v == nil then return nil end 1367 if v == nil then return nil end
1368 return v 1368 return v
1369end 1369end
1370 1370
1371M.variable_constant_get_by_name = function(name) 1371M.variable_constant_get_by_name = function(unit, name)
1372 local v = eolian.eolian_variable_constant_get_by_name(name) 1372 local v = eolian.eolian_variable_constant_get_by_name(unit, name)
1373 if v == nil then return nil end 1373 if v == nil then return nil end
1374 return v 1374 return v
1375end 1375end