summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-12-03 15:27:38 +0000
committerDaniel Kolesa <d.kolesa@samsung.com>2014-12-03 15:27:38 +0000
commit67c693eff14fd78c74dc91efffc0c584998f80a9 (patch)
tree2f6653c5cf978f67d397ed0de3696ccfd8d58acc
parentd24220221ae147d83d7216de0fd42d935e9f0296 (diff)
elua: support is_c_only in lualian
-rw-r--r--src/bin/elua/modules/lualian.lua4
-rw-r--r--src/bindings/luajit/eolian.lua5
2 files changed, 7 insertions, 2 deletions
diff --git a/src/bin/elua/modules/lualian.lua b/src/bin/elua/modules/lualian.lua
index 8d77094..85208e1 100644
--- a/src/bin/elua/modules/lualian.lua
+++ b/src/bin/elua/modules/lualian.lua
@@ -604,7 +604,7 @@ local gen_contents = function(klass)
604 -- first try properties 604 -- first try properties
605 local props = klass:functions_get(ft.PROPERTY):to_array() 605 local props = klass:functions_get(ft.PROPERTY):to_array()
606 for i, v in ipairs(props) do 606 for i, v in ipairs(props) do
607 if v:scope_get() == eolian.object_scope.PUBLIC then 607 if v:scope_get() == eolian.object_scope.PUBLIC and not v:is_c_only() then
608 local ftype = v:type_get() 608 local ftype = v:type_get()
609 local fread = (ftype == ft.PROPERTY or ftype == ft.PROP_GET) 609 local fread = (ftype == ft.PROPERTY or ftype == ft.PROP_GET)
610 local fwrite = (ftype == ft.PROPERTY or ftype == ft.PROP_SET) 610 local fwrite = (ftype == ft.PROPERTY or ftype == ft.PROP_SET)
@@ -619,7 +619,7 @@ local gen_contents = function(klass)
619 -- then methods 619 -- then methods
620 local meths = klass:functions_get(ft.METHOD):to_array() 620 local meths = klass:functions_get(ft.METHOD):to_array()
621 for i, v in ipairs(meths) do 621 for i, v in ipairs(meths) do
622 if v:scope_get() == eolian.object_scope.PUBLIC then 622 if v:scope_get() == eolian.object_scope.PUBLIC and not v:is_c_only() then
623 cnt[#cnt + 1] = Method(v) 623 cnt[#cnt + 1] = Method(v)
624 end 624 end
625 end 625 end
diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua
index d3c76aa..283f6f9 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -215,6 +215,7 @@ ffi.cdef [[
215 Eina_Bool eolian_function_is_empty(const Eolian_Function *function_id, Eolian_Function_Type f_type); 215 Eina_Bool eolian_function_is_empty(const Eolian_Function *function_id, Eolian_Function_Type f_type);
216 Eina_Bool eolian_function_is_legacy_only(const Eolian_Function *function_id, Eolian_Function_Type ftype); 216 Eina_Bool eolian_function_is_legacy_only(const Eolian_Function *function_id, Eolian_Function_Type ftype);
217 Eina_Bool eolian_function_is_class(const Eolian_Function *function_id); 217 Eina_Bool eolian_function_is_class(const Eolian_Function *function_id);
218 Eina_Bool eolian_function_is_c_only(const Eolian_Function *function_id);
218 const Eolian_Function_Parameter *eolian_function_parameter_get_by_name(const Eolian_Function *function_id, const char *param_name); 219 const Eolian_Function_Parameter *eolian_function_parameter_get_by_name(const Eolian_Function *function_id, const char *param_name);
219 Eina_Iterator *eolian_property_keys_get(const Eolian_Function *foo_id); 220 Eina_Iterator *eolian_property_keys_get(const Eolian_Function *foo_id);
220 Eina_Iterator *eolian_property_values_get(const Eolian_Function *foo_id); 221 Eina_Iterator *eolian_property_values_get(const Eolian_Function *foo_id);
@@ -669,6 +670,10 @@ M.Function = ffi.metatype("Eolian_Function", {
669 return eolian.eolian_function_is_class(self) ~= 0 670 return eolian.eolian_function_is_class(self) ~= 0
670 end, 671 end,
671 672
673 is_c_only = function(self)
674 return eolian.eolian_function_is_c_only(self) ~= 0
675 end,
676
672 parameter_get_by_name = function(self, pname) 677 parameter_get_by_name = function(self, pname)
673 local v = eolian.eolian_function_parameter_get_by_name(self, pname) 678 local v = eolian.eolian_function_parameter_get_by_name(self, pname)
674 if v == nil then return nil end 679 if v == nil then return nil end