From e0d8e2419bd36ed7649e45b494aa9c5488cb1f27 Mon Sep 17 00:00:00 2001 From: lixianjing Date: Fri, 4 Dec 2020 08:52:11 +0800 Subject: [PATCH] update idl --- dllexports/awtk.def | 3 +++ dllexports/tkc.def | 3 +++ tools/idl_gen/idl.json | 41 +++++++++++++++++++++++++++++++++++++++++ tools/idl_gen/tkc.json | 41 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 88 insertions(+) diff --git a/dllexports/awtk.def b/dllexports/awtk.def index d5ecb5b20..a56b8fa26 100644 --- a/dllexports/awtk.def +++ b/dllexports/awtk.def @@ -1116,6 +1116,9 @@ EXPORTS fscript_exec fscript_destroy fscript_eval + fscript_global_init + fscript_register_func + fscript_global_deinit func_call_parser_init func_call_parser_parse func_call_parser_deinit diff --git a/dllexports/tkc.def b/dllexports/tkc.def index 7cfe927ae..36b65a27a 100644 --- a/dllexports/tkc.def +++ b/dllexports/tkc.def @@ -307,6 +307,9 @@ EXPORTS fscript_exec fscript_destroy fscript_eval + fscript_global_init + fscript_register_func + fscript_global_deinit func_call_parser_init func_call_parser_parse func_call_parser_deinit diff --git a/tools/idl_gen/idl.json b/tools/idl_gen/idl.json index 9771a1628..04b76d221 100644 --- a/tools/idl_gen/idl.json +++ b/tools/idl_gen/idl.json @@ -31659,6 +31659,47 @@ "type": "ret_t", "desc": "返回RET_OK表示成功,否则表示失败。" } + }, + { + "params": [], + "annotation": {}, + "desc": "全局初始化。", + "name": "fscript_global_init", + "return": { + "type": "ret_t", + "desc": "返回RET_OK表示成功,否则表示失败。" + } + }, + { + "params": [ + { + "type": "const char*", + "name": "name", + "desc": "函数名(无需加函数前缀)。" + }, + { + "type": "fscript_func_t*", + "name": "func", + "desc": "函数指针。" + } + ], + "annotation": {}, + "desc": "注册全局自定义函数。", + "name": "fscript_register_func", + "return": { + "type": "ret_t", + "desc": "返回RET_OK表示成功,否则表示失败。" + } + }, + { + "params": [], + "annotation": {}, + "desc": "全局释放。", + "name": "fscript_global_deinit", + "return": { + "type": "ret_t", + "desc": "返回RET_OK表示成功,否则表示失败。" + } } ], "events": [], diff --git a/tools/idl_gen/tkc.json b/tools/idl_gen/tkc.json index d2be4624b..097a65443 100644 --- a/tools/idl_gen/tkc.json +++ b/tools/idl_gen/tkc.json @@ -7939,6 +7939,47 @@ "type": "ret_t", "desc": "返回RET_OK表示成功,否则表示失败。" } + }, + { + "params": [], + "annotation": {}, + "desc": "全局初始化。", + "name": "fscript_global_init", + "return": { + "type": "ret_t", + "desc": "返回RET_OK表示成功,否则表示失败。" + } + }, + { + "params": [ + { + "type": "const char*", + "name": "name", + "desc": "函数名(无需加函数前缀)。" + }, + { + "type": "fscript_func_t*", + "name": "func", + "desc": "函数指针。" + } + ], + "annotation": {}, + "desc": "注册全局自定义函数。", + "name": "fscript_register_func", + "return": { + "type": "ret_t", + "desc": "返回RET_OK表示成功,否则表示失败。" + } + }, + { + "params": [], + "annotation": {}, + "desc": "全局释放。", + "name": "fscript_global_deinit", + "return": { + "type": "ret_t", + "desc": "返回RET_OK表示成功,否则表示失败。" + } } ], "events": [],