summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-25 15:15:04 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-30 17:15:54 +0200
commit67bc32d9aced9f486d703db2ed883f5958a1a8fb (patch)
tree5f0bdc1c870c39eed52bbff79d72fe576be69d73 /src/bindings
parent9c2dae3531d4dc282a735d5f0705a4eb8af6f4bd (diff)
eolian: pass unit to enum get by name
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/luajit/eolian.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua
index c1a0fe6..f20deec 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -299,7 +299,7 @@ ffi.cdef [[
299 const char *eolian_class_c_get_function_name_get(const Eolian_Class *klass); 299 const char *eolian_class_c_get_function_name_get(const Eolian_Class *klass);
300 const Eolian_Typedecl *eolian_typedecl_alias_get_by_name(const Eolian_Unit *unit, const char *name); 300 const Eolian_Typedecl *eolian_typedecl_alias_get_by_name(const Eolian_Unit *unit, const char *name);
301 const Eolian_Typedecl *eolian_typedecl_struct_get_by_name(const Eolian_Unit *unit, const char *name); 301 const Eolian_Typedecl *eolian_typedecl_struct_get_by_name(const Eolian_Unit *unit, const char *name);
302 const Eolian_Typedecl *eolian_typedecl_enum_get_by_name(const char *name); 302 const Eolian_Typedecl *eolian_typedecl_enum_get_by_name(const Eolian_Unit *unit, const char *name);
303 Eina_Iterator *eolian_typedecl_aliases_get_by_file(const char *fname); 303 Eina_Iterator *eolian_typedecl_aliases_get_by_file(const char *fname);
304 Eina_Iterator *eolian_typedecl_structs_get_by_file(const char *fname); 304 Eina_Iterator *eolian_typedecl_structs_get_by_file(const char *fname);
305 Eina_Iterator *eolian_typedecl_enums_get_by_file(const char *fname); 305 Eina_Iterator *eolian_typedecl_enums_get_by_file(const char *fname);
@@ -1154,8 +1154,8 @@ M.typedecl_struct_get_by_name = function(unit, name)
1154 return v 1154 return v
1155end 1155end
1156 1156
1157M.typedecl_enum_get_by_name = function(name) 1157M.typedecl_enum_get_by_name = function(unit, name)
1158 local v = eolian.eolian_typedecl_enum_get_by_name(name) 1158 local v = eolian.eolian_typedecl_enum_get_by_name(unit, name)
1159 if v == nil then return nil end 1159 if v == nil then return nil end
1160 return v 1160 return v
1161end 1161end