summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-26 15:09:49 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-05-30 17:15:54 +0200
commitd2280f91a18bb430751e3db4fc06085da3cca509 (patch)
tree16832515ce25f8eeba9e8fda3a48f6eb5d4130cc /src/bindings
parentd4c835545b59259a0a4fd0c9ed86b46b616b264e (diff)
eolian: use unit in typedecl c_type_get
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 473a587..0563706 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -342,7 +342,7 @@ ffi.cdef [[
342 Eina_Bool eolian_typedecl_is_extern(const Eolian_Typedecl *tp); 342 Eina_Bool eolian_typedecl_is_extern(const Eolian_Typedecl *tp);
343 343
344 const char *eolian_type_c_type_get(const Eolian_Type *tp); 344 const char *eolian_type_c_type_get(const Eolian_Type *tp);
345 const char *eolian_typedecl_c_type_get(const Eolian_Typedecl *tp); 345 const char *eolian_typedecl_c_type_get(const Eolian_Unit *unit, const Eolian_Typedecl *tp);
346 346
347 const char *eolian_type_name_get(const Eolian_Type *tp); 347 const char *eolian_type_name_get(const Eolian_Type *tp);
348 const char *eolian_typedecl_name_get(const Eolian_Typedecl *tp); 348 const char *eolian_typedecl_name_get(const Eolian_Typedecl *tp);
@@ -624,8 +624,8 @@ M.Typedecl = ffi.metatype("Eolian_Typedecl", {
624 return eolian.eolian_typedecl_is_extern(self) ~= 0 624 return eolian.eolian_typedecl_is_extern(self) ~= 0
625 end, 625 end,
626 626
627 c_type_get = function(self) 627 c_type_get = function(self, unit)
628 local v = eolian.eolian_typedecl_c_type_get(self) 628 local v = eolian.eolian_typedecl_c_type_get(unit, self)
629 if v == nil then return nil end 629 if v == nil then return nil end
630 return ffi_stringshare(v) 630 return ffi_stringshare(v)
631 end, 631 end,