q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9e8d96671eab831daee56e664bd88b00ca7b53c6

commit 9e8d96671eab831daee56e664bd88b00ca7b53c6
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Fri Mar 2 14:39:57 2018 +0100

    elua: add missing APIs to eolian bindings
---
 src/bindings/luajit/eolian.lua | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua
index 7c29337511..6faa91c8ba 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -595,6 +595,19 @@ ffi.metatype("Eolian_State", {
             return ffi.cast("Eolian_Unit *", self)
         end,
 
+        unit_by_file_get = function(self, fname)
+            local v = eolian.eolian_state_unit_by_file_get(state, fname)
+            if v == nil then
+                return nil
+            end
+            return v
+        end,
+
+        units_get = function(self)
+            return Ptr_Iterator("const Eolian_Unit*",
+                eolian.eolian_state_units_get(self))
+        end,
+
         class_by_name_get = function(self, cname)
             local v = eolian.eolian_state_class_by_name_get(self, cname)
             if v == nil then return nil end
@@ -619,6 +632,17 @@ ffi.metatype("Eolian_State", {
 
 ffi.metatype("Eolian_Unit", {
     __index = {
+        children_get = function(self)
+            return Ptr_Iterator("const Eolian_Unit*",
+                eolian.eolian_unit_children_get(self))
+        end,
+
+        file_get = function(self)
+            local v = eolian.eolian_unit_file_get(self)
+            if v == nil then return nil end
+            return ffi.string(v)
+        end,
+
         class_by_name_get = function(self, cname)
             local v = eolian.eolian_unit_class_by_name_get(self, cname)
             if v == nil then return nil end

-- 


Reply via email to