aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-11-20 17:16:04 +0000
committerDaniel Kolesa <d.kolesa@samsung.com>2014-11-20 17:16:04 +0000
commit3b59913b9abc4e5c9a164970b0c99c5c13e0451f (patch)
tree2411899a2abe39e4069e09c45ec423c575214386
parenteolian: forgot to add prototype to header (diff)
downloadefl-3b59913b9abc4e5c9a164970b0c99c5c13e0451f.tar.gz
elua: update eolian bindings
-rw-r--r--src/bindings/luajit/eolian.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua
index c8fd6a80b8..369252d70e 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -240,6 +240,7 @@ ffi.cdef [[
const char *eolian_constructor_full_name_get(const Eolian_Constructor *ctor);
const Eolian_Class *eolian_constructor_class_get(const Eolian_Constructor *ctor);
const Eolian_Function *eolian_constructor_function_get(const Eolian_Constructor *ctor);
+ Eina_Bool eolian_constructor_is_optional(const Eolian_Constructor *ctor);
Eina_Iterator *eolian_class_constructors_get(const Eolian_Class *klass);
Eina_Iterator *eolian_class_events_get(const Eolian_Class *klass);
const char *eolian_event_name_get(const Eolian_Event *event);
@@ -805,6 +806,10 @@ ffi.metatype("Eolian_Constructor", {
local v = eolian.eolian_constructor_function_get(self)
if v == nil then return nil end
return v
+ end,
+
+ is_optional = function(self)
+ return eolian.eolian_constructor_is_optional(self) ~= 0
end
}
})