summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-01-19 14:46:40 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-01-19 15:09:07 +0100
commit95181f2d36c0c10805bb5deaf1d4e0c52c41afb0 (patch)
treebeb25617b9c83682a05710f7f8d2233a9257955a /src/bindings
parent67bbb685d42536a9613315e52349bdbcb3dbc293 (diff)
eolian: move base function doc API into implements
This allows us to unify retrieval of docs for both regular and overridden funcs without having two separate APIs. It's currently missing validation and docgen is still not adjusted properly for it either, but at least there's this. Enables retrieval of docs for overridden funcs by default as well.
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/luajit/eolian.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua
index d96b7e6..0079928 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -249,7 +249,6 @@ ffi.cdef [[
249 const char *eolian_function_full_c_name_get(const Eolian_Function *function_id, Eolian_Function_Type ftype, Eina_Bool use_legacy); 249 const char *eolian_function_full_c_name_get(const Eolian_Function *function_id, Eolian_Function_Type ftype, Eina_Bool use_legacy);
250 const Eolian_Function *eolian_class_function_get_by_name(const Eolian_Class *klass, const char *func_name, Eolian_Function_Type f_type); 250 const Eolian_Function *eolian_class_function_get_by_name(const Eolian_Class *klass, const char *func_name, Eolian_Function_Type f_type);
251 const char *eolian_function_legacy_get(const Eolian_Function *function_id, Eolian_Function_Type f_type); 251 const char *eolian_function_legacy_get(const Eolian_Function *function_id, Eolian_Function_Type f_type);
252 const Eolian_Documentation *eolian_function_documentation_get(const Eolian_Function *function_id, Eolian_Function_Type f_type);
253 const Eolian_Implement *eolian_function_implement_get(const Eolian_Function *function_id); 252 const Eolian_Implement *eolian_function_implement_get(const Eolian_Function *function_id);
254 Eina_Bool eolian_function_is_legacy_only(const Eolian_Function *function_id, Eolian_Function_Type ftype); 253 Eina_Bool eolian_function_is_legacy_only(const Eolian_Function *function_id, Eolian_Function_Type ftype);
255 Eina_Bool eolian_function_is_class(const Eolian_Function *function_id); 254 Eina_Bool eolian_function_is_class(const Eolian_Function *function_id);
@@ -273,6 +272,7 @@ ffi.cdef [[
273 const char *eolian_implement_full_name_get(const Eolian_Implement *impl); 272 const char *eolian_implement_full_name_get(const Eolian_Implement *impl);
274 const Eolian_Class *eolian_implement_class_get(const Eolian_Implement *impl); 273 const Eolian_Class *eolian_implement_class_get(const Eolian_Implement *impl);
275 const Eolian_Function *eolian_implement_function_get(const Eolian_Implement *impl, Eolian_Function_Type *func_type); 274 const Eolian_Function *eolian_implement_function_get(const Eolian_Implement *impl, Eolian_Function_Type *func_type);
275 const Eolian_Documentation *eolian_implement_documentation_get(const Eolian_Implement *impl, Eolian_Function_Type f_type);
276 Eina_Bool eolian_implement_is_auto(const Eolian_Implement *impl, Eolian_Function_Type ftype); 276 Eina_Bool eolian_implement_is_auto(const Eolian_Implement *impl, Eolian_Function_Type ftype);
277 Eina_Bool eolian_implement_is_empty(const Eolian_Implement *impl, Eolian_Function_Type ftype); 277 Eina_Bool eolian_implement_is_empty(const Eolian_Implement *impl, Eolian_Function_Type ftype);
278 Eina_Bool eolian_implement_is_pure_virtual(const Eolian_Implement *impl, Eolian_Function_Type ftype); 278 Eina_Bool eolian_implement_is_pure_virtual(const Eolian_Implement *impl, Eolian_Function_Type ftype);
@@ -775,12 +775,6 @@ M.Function = ffi.metatype("Eolian_Function", {
775 return ffi.string(v) 775 return ffi.string(v)
776 end, 776 end,
777 777
778 documentation_get = function(self, ftype)
779 local v = eolian.eolian_function_documentation_get(self, ftype)
780 if v == nil then return nil end
781 return v
782 end,
783
784 implement_get = function(self) 778 implement_get = function(self)
785 local v = eolian.eolian_function_implement_get(self) 779 local v = eolian.eolian_function_implement_get(self)
786 if v == nil then return nil end 780 if v == nil then return nil end
@@ -915,6 +909,12 @@ ffi.metatype("Eolian_Implement", {
915 return v, tp[0] 909 return v, tp[0]
916 end, 910 end,
917 911
912 documentation_get = function(self, ftype)
913 local v = eolian.eolian_implement_documentation_get(self, ftype)
914 if v == nil then return nil end
915 return v
916 end,
917
918 is_auto = function(self, ftype) 918 is_auto = function(self, ftype)
919 return eolian.eolian_implement_is_auto(self, ftype) ~= 0 919 return eolian.eolian_implement_is_auto(self, ftype) ~= 0
920 end, 920 end,