summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-24 16:36:23 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-30 17:15:53 +0200
commit45a73a08789f0f91ea72cf647f55058e6f3d4813 (patch)
tree833d9fbf7b3e7a467eb570d1382b64eee6747c8b /src/bindings
parent83bf422159750680e0b7ae9add94ad7e4bd0edba (diff)
eolian: pass unit to class get_by_name/file
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 5defce5..f4d6285 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -230,8 +230,8 @@ ffi.cdef [[
230 Eina_Bool eolian_all_eo_files_parse(); 230 Eina_Bool eolian_all_eo_files_parse();
231 Eina_Bool eolian_all_eot_files_parse(); 231 Eina_Bool eolian_all_eot_files_parse();
232 Eina_Bool eolian_database_validate(); 232 Eina_Bool eolian_database_validate();
233 const Eolian_Class *eolian_class_get_by_name(const char *class_name); 233 const Eolian_Class *eolian_class_get_by_name(const Eolian_Unit *unit, const char *class_name);
234 const Eolian_Class *eolian_class_get_by_file(const char *file_name); 234 const Eolian_Class *eolian_class_get_by_file(const Eolian_Unit *unit, const char *file_name);
235 const char *eolian_class_file_get(const Eolian_Class *klass); 235 const char *eolian_class_file_get(const Eolian_Class *klass);
236 const char *eolian_class_full_name_get(const Eolian_Class *klass); 236 const char *eolian_class_full_name_get(const Eolian_Class *klass);
237 const char *eolian_class_name_get(const Eolian_Class *klass); 237 const char *eolian_class_name_get(const Eolian_Class *klass);
@@ -1008,14 +1008,14 @@ ffi.metatype("Eolian_Event", {
1008 } 1008 }
1009}) 1009})
1010 1010
1011M.class_get_by_name = function(cname) 1011M.class_get_by_name = function(unit, cname)
1012 local v = eolian.eolian_class_get_by_name(cname) 1012 local v = eolian.eolian_class_get_by_name(unit, cname)
1013 if v == nil then return nil end 1013 if v == nil then return nil end
1014 return v 1014 return v
1015end 1015end
1016 1016
1017M.class_get_by_file = function(fname) 1017M.class_get_by_file = function(unit, fname)
1018 local v = eolian.eolian_class_get_by_file(fname) 1018 local v = eolian.eolian_class_get_by_file(unit, fname)
1019 if v == nil then return nil end 1019 if v == nil then return nil end
1020 return v 1020 return v
1021end 1021end