summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-20 17:42:00 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-20 17:42:44 +0100
commit6b91b1bd128328f675f41491d317d781531d1e2d (patch)
tree7278d2973a2064309ea825b791476c557a9375bc /src/bindings
parentf64c12dc1dd6b8fa24c0ec14a5978ab05a490246 (diff)
eolian: allow keys/values in property get/set
Sometimes it is necessary to specify a different set of values for a getter or a setter. This commit allows such specializations. This also renders @const_get and @const_set useless (soon to be removed). To function correctly, this required adjustment of several public APIs as well as deprecation of eolian_function_parameter_get_by_name. This function was not used in any generator and was pretty much useless in the first place, so it was removed. @fix
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/luajit/eolian.lua7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua
index d806f4aa98..67ff24a54a 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -213,7 +213,6 @@ ffi.cdef [[
213 Eina_Bool eolian_function_is_legacy_only(const Eolian_Function *function_id, Eolian_Function_Type ftype); 213 Eina_Bool eolian_function_is_legacy_only(const Eolian_Function *function_id, Eolian_Function_Type ftype);
214 Eina_Bool eolian_function_is_class(const Eolian_Function *function_id); 214 Eina_Bool eolian_function_is_class(const Eolian_Function *function_id);
215 Eina_Bool eolian_function_is_c_only(const Eolian_Function *function_id); 215 Eina_Bool eolian_function_is_c_only(const Eolian_Function *function_id);
216 const Eolian_Function_Parameter *eolian_function_parameter_get_by_name(const Eolian_Function *function_id, const char *param_name);
217 Eina_Iterator *eolian_property_keys_get(const Eolian_Function *foo_id, Eolian_Function_Type ftype); 216 Eina_Iterator *eolian_property_keys_get(const Eolian_Function *foo_id, Eolian_Function_Type ftype);
218 Eina_Iterator *eolian_property_values_get(const Eolian_Function *foo_id, Eolian_Function_Type ftype); 217 Eina_Iterator *eolian_property_values_get(const Eolian_Function *foo_id, Eolian_Function_Type ftype);
219 Eina_Iterator *eolian_function_parameters_get(const Eolian_Function *function_id); 218 Eina_Iterator *eolian_function_parameters_get(const Eolian_Function *function_id);
@@ -671,12 +670,6 @@ M.Function = ffi.metatype("Eolian_Function", {
671 return eolian.eolian_function_is_c_only(self) ~= 0 670 return eolian.eolian_function_is_c_only(self) ~= 0
672 end, 671 end,
673 672
674 parameter_get_by_name = function(self, pname)
675 local v = eolian.eolian_function_parameter_get_by_name(self, pname)
676 if v == nil then return nil end
677 return v
678 end,
679
680 property_keys_get = function(self, ftype) 673 property_keys_get = function(self, ftype)
681 return Ptr_Iterator("const Eolian_Function_Parameter*", 674 return Ptr_Iterator("const Eolian_Function_Parameter*",
682 eolian.eolian_property_keys_get(self, ftype)) 675 eolian.eolian_property_keys_get(self, ftype))