summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-07-08 12:09:56 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-07-08 12:10:20 +0100
commit825349c7b8a7edb54d24b74356ec597f27e5d18a (patch)
tree70484c067c277bd64fbe50aa8a122696c7134b04 /src/bindings
parentef65806ce4dc7560d9027b951cf707e7aae4eb86 (diff)
eolian: improve function_full_c_name_get API
It's now generalized to work properly with legacy functions as well as correctly append suffixes. Thus, it can be easily used with the documentation generator and in other places. @feature
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 6cf150002d..3a8686d960 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -206,7 +206,7 @@ ffi.cdef [[
206 Eolian_Function_Type eolian_function_type_get(const Eolian_Function *function_id); 206 Eolian_Function_Type eolian_function_type_get(const Eolian_Function *function_id);
207 Eolian_Object_Scope eolian_function_scope_get(const Eolian_Function *function_id); 207 Eolian_Object_Scope eolian_function_scope_get(const Eolian_Function *function_id);
208 const char *eolian_function_name_get(const Eolian_Function *function_id); 208 const char *eolian_function_name_get(const Eolian_Function *function_id);
209 const char *eolian_function_full_c_name_get(const Eolian_Function *function_id); 209 const char *eolian_function_full_c_name_get(const Eolian_Function *function_id, Eolian_Function_Type ftype, Eina_Bool use_legacy);
210 const Eolian_Function *eolian_class_function_get_by_name(const Eolian_Class *klass, const char *func_name, Eolian_Function_Type f_type); 210 const Eolian_Function *eolian_class_function_get_by_name(const Eolian_Class *klass, const char *func_name, Eolian_Function_Type f_type);
211 const char *eolian_function_legacy_get(const Eolian_Function *function_id, Eolian_Function_Type f_type); 211 const char *eolian_function_legacy_get(const Eolian_Function *function_id, Eolian_Function_Type f_type);
212 const Eolian_Documentation *eolian_function_documentation_get(const Eolian_Function *function_id, Eolian_Function_Type f_type); 212 const Eolian_Documentation *eolian_function_documentation_get(const Eolian_Function *function_id, Eolian_Function_Type f_type);
@@ -617,8 +617,8 @@ M.Function = ffi.metatype("Eolian_Function", {
617 return ffi.string(v) 617 return ffi.string(v)
618 end, 618 end,
619 619
620 full_c_name_get = function(self) 620 full_c_name_get = function(self, ftype, use_legacy)
621 local v = eolian.eolian_function_full_c_name_get(self) 621 local v = eolian.eolian_function_full_c_name_get(self, ftype, use_legacy or false)
622 if v == nil then return nil end 622 if v == nil then return nil end
623 return ffi_stringshare(v) 623 return ffi_stringshare(v)
624 end, 624 end,