update idl

This commit is contained in:
lixianjing 2020-11-09 18:25:20 +08:00
parent 97930200fc
commit 3c1852cfc9
4 changed files with 772 additions and 636 deletions

View File

@ -1214,6 +1214,7 @@ EXPORTS
func_call_parser_parse
func_call_parser_deinit
func_call_parse
fscript_eval
fs_open_file
fs_remove_file
fs_file_exist
@ -1326,11 +1327,11 @@ EXPORTS
canvas_stroke_rounded_rect
canvas_stroke_rounded_rect_ex
canvas_end_frame
easing_get
asset_loader_create
asset_loader_load
asset_loader_exist
asset_loader_destroy
easing_get
tk_dl_open
tk_dl_sym
tk_dl_close
@ -1442,6 +1443,7 @@ EXPORTS
asset_info_unref
asset_info_ref
asset_info_get_formatted_name
tk_ostream_serial_create
action_thread_create
action_thread_create_with_queue
action_thread_exec
@ -1451,7 +1453,6 @@ EXPORTS
action_thread_pool_create
action_thread_pool_exec
action_thread_pool_destroy
tk_ostream_serial_create
bsvg_init
bsvg_to_svg
svg_to_bsvg
@ -1464,7 +1465,10 @@ EXPORTS
guage_pointer_set_angle
guage_pointer_set_image
guage_pointer_set_anchor
self_layouter_menu_create
lcd_mem_bgr565_create
lcd_mem_bgr565_create_single_fb
lcd_mem_bgr565_create_double_fb
lcd_mem_bgr565_create_three_fb
wheel_event_cast
wheel_event_init
view_create
@ -1581,12 +1585,7 @@ EXPORTS
lcd_mem_bgr888_create_single_fb
lcd_mem_bgr888_create_double_fb
lcd_mem_bgr888_create_three_fb
lcd_mem_bgr565_create
lcd_mem_bgr565_create_single_fb
lcd_mem_bgr565_create_double_fb
lcd_mem_bgr565_create_three_fb
self_layouter_default_create
children_layouter_default_create
self_layouter_menu_create
column_create
column_cast
color_tile_create
@ -1595,7 +1594,7 @@ EXPORTS
color_tile_set_border_color
color_tile_set_value
event_source_manager_default_create
input_method_sdl_create
self_layouter_default_create
clip_view_create
clip_view_cast
check_button_create
@ -1603,7 +1602,7 @@ EXPORTS
check_button_set_value
check_button_get_checked_button
check_button_cast
input_method_null_create
children_layouter_default_create
prop_change_event_cast
prop_change_event_init
progress_event_cast
@ -1614,6 +1613,8 @@ EXPORTS
error_event_init
cmd_exec_event_cast
cmd_exec_event_init
input_method_sdl_create
input_method_null_create
input_method_default_create
image_loader_stb
stb_load_image

View File

@ -125,20 +125,10 @@ EXPORTS
value_destroy
value_reset
value_cast
slist_create
slist_init
slist_find
slist_remove
slist_remove_all
slist_append
slist_prepend
slist_foreach
slist_tail_pop
slist_head_pop
slist_size
slist_count
slist_deinit
slist_destroy
tk_semaphore_create
tk_semaphore_wait
tk_semaphore_post
tk_semaphore_destroy
asset_info_create
asset_info_destroy
asset_info_unref
@ -373,6 +363,7 @@ EXPORTS
file_read
file_read_part
file_write
fscript_eval
func_call_parser_init
func_call_parser_parse
func_call_parser_deinit
@ -550,16 +541,26 @@ EXPORTS
rom_fread
rom_fwrite
rom_fclose
tk_semaphore_create
tk_semaphore_wait
tk_semaphore_post
tk_semaphore_destroy
action_thread_create
action_thread_create_with_queue
action_thread_exec
action_thread_set_on_idle
action_thread_set_on_quit
action_thread_destroy
slist_create
slist_init
slist_find
slist_remove
slist_remove_all
slist_append
slist_prepend
slist_foreach
slist_tail_pop
slist_head_pop
slist_size
slist_count
slist_deinit
slist_destroy
socket_init
socket_deinit
socket_close

View File

@ -33919,6 +33919,73 @@
"name": "func_call_parser_t",
"level": 1
},
{
"type": "class",
"methods": [
{
"params": [
{
"type": "object_t*",
"name": "obj",
"desc": "脚本执行上下文。"
},
{
"type": "const char*",
"name": "script",
"desc": "脚本代码。"
},
{
"type": "value_t*",
"name": "result",
"desc": "执行结果。"
}
],
"annotation": {},
"desc": "",
"name": "fscript_eval",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
}
],
"events": [],
"properties": [],
"header": "tkc/fscript.h",
"desc": "一个简易的函数式脚本。",
"name": "fscript_t",
"annotation": {
"fake": true
},
"level": 1
},
{
"type": "class",
"methods": [],
"events": [],
"properties": [
{
"name": "size",
"desc": "参数个数。",
"type": "uint32_t",
"annotation": {
"readable": true
}
},
{
"name": "args",
"desc": "参数列表。",
"type": "value_t*",
"annotation": {
"readable": true
}
}
],
"header": "tkc/fscript.h",
"desc": "扩展函数的参数。",
"name": "fscript_args_t",
"level": 1
},
{
"type": "class",
"methods": [
@ -37027,27 +37094,6 @@
},
"level": 1
},
{
"params": [
{
"type": "easing_type_t",
"name": "type",
"desc": "类型。"
}
],
"annotation": {
"global": true
},
"desc": "获取对应类型的操作函数。",
"name": "easing_get",
"return": {
"type": "easing_func_t",
"desc": "返回对应的操作函数地址。"
},
"type": "method",
"header": "tkc/easing.h",
"level": 1
},
{
"type": "class",
"methods": [
@ -37142,6 +37188,27 @@
"name": "asset_loader_t",
"level": 1
},
{
"params": [
{
"type": "easing_type_t",
"name": "type",
"desc": "类型。"
}
],
"annotation": {
"global": true
},
"desc": "获取对应类型的操作函数。",
"name": "easing_get",
"return": {
"type": "easing_func_t",
"desc": "返回对应的操作函数地址。"
},
"type": "method",
"header": "tkc/easing.h",
"level": 1
},
{
"type": "enum",
"desc": "缓动作动画常量定义。",
@ -40018,6 +40085,24 @@
"prefix": "ASSET_UI_TYPE_",
"level": 1
},
{
"type": "enum",
"desc": "缓存不够时丢弃数据的策略。",
"consts": [
{
"desc": "丢弃旧的数据。",
"name": "DATA_DISCARD_OLD"
},
{
"desc": "丢弃新的数据。",
"name": "DATA_DISCARD_NEW"
}
],
"header": "misc/ostream_retry.h",
"name": "data_discard_policy_t",
"prefix": "DATA_DISCARD_",
"level": 1
},
{
"type": "enum",
"desc": "图片资源类型定义。",
@ -40094,24 +40179,6 @@
"prefix": "ASSET_SCRIPT_TYPE_",
"level": 1
},
{
"type": "enum",
"desc": "缓存不够时丢弃数据的策略。",
"consts": [
{
"desc": "丢弃旧的数据。",
"name": "DATA_DISCARD_OLD"
},
{
"desc": "丢弃新的数据。",
"name": "DATA_DISCARD_NEW"
}
],
"header": "misc/ostream_retry.h",
"name": "data_discard_policy_t",
"prefix": "DATA_DISCARD_",
"level": 1
},
{
"type": "enum",
"desc": "数据资源类型定义。",
@ -40213,6 +40280,33 @@
},
"level": 1
},
{
"type": "class",
"methods": [
{
"params": [
{
"type": "int",
"name": "fd",
"desc": "fd."
}
],
"annotation": {},
"desc": "创建ostream对象。",
"name": "tk_ostream_serial_create",
"return": {
"type": "tk_ostream_t*",
"desc": "返回ostream对象。"
}
}
],
"events": [],
"properties": [],
"header": "serial/ostream_serial.h",
"desc": "基于串口实现的输出流。\n\ninput stream base on fd",
"name": "tk_ostream_serial_t",
"level": 1
},
{
"type": "class",
"methods": [
@ -40456,33 +40550,6 @@
"name": "action_thread_pool_t",
"level": 1
},
{
"type": "class",
"methods": [
{
"params": [
{
"type": "int",
"name": "fd",
"desc": "fd."
}
],
"annotation": {},
"desc": "创建ostream对象。",
"name": "tk_ostream_serial_create",
"return": {
"type": "tk_ostream_t*",
"desc": "返回ostream对象。"
}
}
],
"events": [],
"properties": [],
"header": "serial/ostream_serial.h",
"desc": "基于串口实现的输出流。\n\ninput stream base on fd",
"name": "tk_ostream_serial_t",
"level": 1
},
{
"type": "class",
"methods": [
@ -40873,24 +40940,134 @@
"type": "class",
"methods": [
{
"params": [],
"annotation": {
"constructor": true
},
"desc": "创建控件自身布局对象。",
"name": "self_layouter_menu_create",
"params": [
{
"type": "wh_t",
"name": "w",
"desc": "宽度。"
},
{
"type": "wh_t",
"name": "h",
"desc": "高度。"
},
{
"type": "bool_t",
"name": "alloc",
"desc": "是否分配内存。"
}
],
"annotation": {},
"desc": "创建lcd对象。",
"name": "lcd_mem_bgr565_create",
"return": {
"type": "self_layouter_t*",
"desc": "返回创建控件自身布局对象。"
"type": "lcd_t*",
"desc": "返回lcd对象。"
}
},
{
"params": [
{
"type": "wh_t",
"name": "w",
"desc": "宽度。"
},
{
"type": "wh_t",
"name": "h",
"desc": "高度。"
},
{
"type": "uint8_t*",
"name": "fbuff",
"desc": "帧率缓冲区。"
}
],
"annotation": {},
"desc": "创建single fb lcd对象。",
"name": "lcd_mem_bgr565_create_single_fb",
"return": {
"type": "lcd_t*",
"desc": "返回lcd对象。"
}
},
{
"params": [
{
"type": "wh_t",
"name": "w",
"desc": "宽度。"
},
{
"type": "wh_t",
"name": "h",
"desc": "高度。"
},
{
"type": "uint8_t*",
"name": "online_fb",
"desc": "在线帧率缓冲区。"
},
{
"type": "uint8_t*",
"name": "offline_fb",
"desc": "离线帧率缓冲区。"
}
],
"annotation": {},
"desc": "创建double fb lcd对象。",
"name": "lcd_mem_bgr565_create_double_fb",
"return": {
"type": "lcd_t*",
"desc": "返回lcd对象。"
}
},
{
"params": [
{
"type": "wh_t",
"name": "w",
"desc": "宽度。"
},
{
"type": "wh_t",
"name": "h",
"desc": "高度。"
},
{
"type": "uint8_t*",
"name": "online_fb",
"desc": "在线帧率缓冲区。"
},
{
"type": "uint8_t*",
"name": "offline_fb",
"desc": "离线帧率缓冲区。"
},
{
"type": "uint8_t*",
"name": "next_fb",
"desc": "待显示的帧率缓冲区。"
}
],
"annotation": {},
"desc": "创建three fb lcd对象。",
"name": "lcd_mem_bgr565_create_three_fb",
"return": {
"type": "lcd_t*",
"desc": "返回lcd对象。"
}
}
],
"events": [],
"properties": [],
"header": "layouters/self_layouter_menu.h",
"desc": "menu的控件自身布局算法实现(一般用于popup或dialog窗口)。\n\n> 用法请参考:[缺省控件自身布局算法](\nhttps://github.com/zlgopen/awtk/blob/master/docs/self_layouter_menu.md)",
"name": "self_layouter_menu_t",
"parent": "self_layouter_t",
"header": "lcd/lcd_mem_bgr565.h",
"desc": "",
"name": "lcd_mem_bgr565_t",
"parent": "lcd_t",
"annotation": {
"fake": true
},
"level": 2
},
{
@ -45255,140 +45432,6 @@
},
"level": 2
},
{
"type": "class",
"methods": [
{
"params": [
{
"type": "wh_t",
"name": "w",
"desc": "宽度。"
},
{
"type": "wh_t",
"name": "h",
"desc": "高度。"
},
{
"type": "bool_t",
"name": "alloc",
"desc": "是否分配内存。"
}
],
"annotation": {},
"desc": "创建lcd对象。",
"name": "lcd_mem_bgr565_create",
"return": {
"type": "lcd_t*",
"desc": "返回lcd对象。"
}
},
{
"params": [
{
"type": "wh_t",
"name": "w",
"desc": "宽度。"
},
{
"type": "wh_t",
"name": "h",
"desc": "高度。"
},
{
"type": "uint8_t*",
"name": "fbuff",
"desc": "帧率缓冲区。"
}
],
"annotation": {},
"desc": "创建single fb lcd对象。",
"name": "lcd_mem_bgr565_create_single_fb",
"return": {
"type": "lcd_t*",
"desc": "返回lcd对象。"
}
},
{
"params": [
{
"type": "wh_t",
"name": "w",
"desc": "宽度。"
},
{
"type": "wh_t",
"name": "h",
"desc": "高度。"
},
{
"type": "uint8_t*",
"name": "online_fb",
"desc": "在线帧率缓冲区。"
},
{
"type": "uint8_t*",
"name": "offline_fb",
"desc": "离线帧率缓冲区。"
}
],
"annotation": {},
"desc": "创建double fb lcd对象。",
"name": "lcd_mem_bgr565_create_double_fb",
"return": {
"type": "lcd_t*",
"desc": "返回lcd对象。"
}
},
{
"params": [
{
"type": "wh_t",
"name": "w",
"desc": "宽度。"
},
{
"type": "wh_t",
"name": "h",
"desc": "高度。"
},
{
"type": "uint8_t*",
"name": "online_fb",
"desc": "在线帧率缓冲区。"
},
{
"type": "uint8_t*",
"name": "offline_fb",
"desc": "离线帧率缓冲区。"
},
{
"type": "uint8_t*",
"name": "next_fb",
"desc": "待显示的帧率缓冲区。"
}
],
"annotation": {},
"desc": "创建three fb lcd对象。",
"name": "lcd_mem_bgr565_create_three_fb",
"return": {
"type": "lcd_t*",
"desc": "返回lcd对象。"
}
}
],
"events": [],
"properties": [],
"header": "lcd/lcd_mem_bgr565.h",
"desc": "",
"name": "lcd_mem_bgr565_t",
"parent": "lcd_t",
"annotation": {
"fake": true
},
"level": 2
},
{
"type": "class",
"methods": [
@ -45398,7 +45441,7 @@
"constructor": true
},
"desc": "创建控件自身布局对象。",
"name": "self_layouter_default_create",
"name": "self_layouter_menu_create",
"return": {
"type": "self_layouter_t*",
"desc": "返回创建控件自身布局对象。"
@ -45407,36 +45450,12 @@
],
"events": [],
"properties": [],
"header": "layouters/self_layouter_default.h",
"desc": "缺省的控件自身布局算法实现。\n\n> 用法请参考:[缺省控件自身布局算法](\nhttps://github.com/zlgopen/awtk/blob/master/docs/self_layouter_default.md)",
"name": "self_layouter_default_t",
"header": "layouters/self_layouter_menu.h",
"desc": "menu的控件自身布局算法实现(一般用于popup或dialog窗口)。\n\n> 用法请参考:[缺省控件自身布局算法](\nhttps://github.com/zlgopen/awtk/blob/master/docs/self_layouter_menu.md)",
"name": "self_layouter_menu_t",
"parent": "self_layouter_t",
"level": 2
},
{
"type": "class",
"methods": [
{
"params": [],
"annotation": {
"constructor": true
},
"desc": "创建子控件布局对象。",
"name": "children_layouter_default_create",
"return": {
"type": "children_layouter_t*",
"desc": "返回创建子控件布局对象。"
}
}
],
"events": [],
"properties": [],
"header": "layouters/children_layouter_default.h",
"desc": "缺省的子控件布局算法实现。\n\n> 用法请参考:[缺省子控件布局算法](\nhttps://github.com/zlgopen/awtk/blob/master/docs/children_layouter_default.md)",
"name": "children_layouter_default_t",
"parent": "children_layouter_t",
"level": 2
},
{
"type": "class",
"methods": [
@ -45718,23 +45737,20 @@
"annotation": {
"constructor": true
},
"desc": "创建SDL输入法对象。",
"name": "input_method_sdl_create",
"desc": "创建控件自身布局对象。",
"name": "self_layouter_default_create",
"return": {
"type": "input_method_t*",
"desc": "返回输入法对象。"
"type": "self_layouter_t*",
"desc": "返回创建控件自身布局对象。"
}
}
],
"events": [],
"properties": [],
"header": "input_methods/input_method_sdl.h",
"desc": "SDL输入法实现。\n\nSDL输入法使用平台自身的输入法引擎一般在桌面Linux、MacOS、Windows、Android和iOS上使用。",
"name": "input_method_sdl_t",
"parent": "input_method_t",
"annotation": {
"fake": true
},
"header": "layouters/self_layouter_default.h",
"desc": "缺省的控件自身布局算法实现。\n\n> 用法请参考:[缺省控件自身布局算法](\nhttps://github.com/zlgopen/awtk/blob/master/docs/self_layouter_default.md)",
"name": "self_layouter_default_t",
"parent": "self_layouter_t",
"level": 2
},
{
@ -45998,23 +46014,20 @@
"annotation": {
"constructor": true
},
"desc": "创建空输入法对象。",
"name": "input_method_null_create",
"desc": "创建子控件布局对象。",
"name": "children_layouter_default_create",
"return": {
"type": "input_method_t*",
"desc": "返回输入法对象。"
"type": "children_layouter_t*",
"desc": "返回创建子控件布局对象。"
}
}
],
"events": [],
"properties": [],
"header": "input_methods/input_method_null.h",
"desc": "空输入法实现。\n\n在不需要输入法的嵌入式平台使用空的输入法。",
"name": "input_method_null_t",
"parent": "input_method_t",
"annotation": {
"fake": true
},
"header": "layouters/children_layouter_default.h",
"desc": "缺省的子控件布局算法实现。\n\n> 用法请参考:[缺省子控件布局算法](\nhttps://github.com/zlgopen/awtk/blob/master/docs/children_layouter_default.md)",
"name": "children_layouter_default_t",
"parent": "children_layouter_t",
"level": 2
},
{
@ -46412,6 +46425,60 @@
"parent": "event_t",
"level": 2
},
{
"type": "class",
"methods": [
{
"params": [],
"annotation": {
"constructor": true
},
"desc": "创建SDL输入法对象。",
"name": "input_method_sdl_create",
"return": {
"type": "input_method_t*",
"desc": "返回输入法对象。"
}
}
],
"events": [],
"properties": [],
"header": "input_methods/input_method_sdl.h",
"desc": "SDL输入法实现。\n\nSDL输入法使用平台自身的输入法引擎一般在桌面Linux、MacOS、Windows、Android和iOS上使用。",
"name": "input_method_sdl_t",
"parent": "input_method_t",
"annotation": {
"fake": true
},
"level": 2
},
{
"type": "class",
"methods": [
{
"params": [],
"annotation": {
"constructor": true
},
"desc": "创建空输入法对象。",
"name": "input_method_null_create",
"return": {
"type": "input_method_t*",
"desc": "返回输入法对象。"
}
}
],
"events": [],
"properties": [],
"header": "input_methods/input_method_null.h",
"desc": "空输入法实现。\n\n在不需要输入法的嵌入式平台使用空的输入法。",
"name": "input_method_null_t",
"parent": "input_method_t",
"annotation": {
"fake": true
},
"level": 2
},
{
"type": "class",
"methods": [

View File

@ -3065,89 +3065,40 @@
{
"params": [
{
"type": "tk_destroy_t",
"name": "destroy",
"desc": "元素销毁函数。"
"type": "uint32_t",
"name": "value",
"desc": "初始值。"
},
{
"type": "tk_compare_t",
"name": "compare",
"desc": "元素比较函数。"
"type": "const char*",
"name": "name",
"desc": "名称。"
}
],
"annotation": {
"constructor": true
},
"desc": "创建slist对象",
"name": "slist_create",
"annotation": {},
"desc": "创建信号量对象。",
"name": "tk_semaphore_create",
"return": {
"type": "slist_t*",
"desc": "单向链表对象。"
"type": "tk_semaphore_t*",
"desc": "semaphore对象。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
"type": "tk_semaphore_t*",
"name": "semaphore",
"desc": "信号量对象。"
},
{
"type": "tk_destroy_t",
"name": "destroy",
"desc": "元素销毁函数。"
},
{
"type": "tk_compare_t",
"name": "compare",
"desc": "元素比较函数。"
"type": "uint32_t",
"name": "timeout_ms",
"desc": "超时时间。"
}
],
"annotation": {},
"desc": "初始化slist对象",
"name": "slist_init",
"return": {
"type": "slist_t*",
"desc": "单向链表对象。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
},
{
"type": "void*",
"name": "ctx",
"desc": "比较函数的上下文。"
}
],
"annotation": {},
"desc": "查找第一个满足条件的元素。",
"name": "slist_find",
"return": {
"type": "void*",
"desc": "如果找到返回满足条件的对象否则返回NULL。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
},
{
"type": "void*",
"name": "ctx",
"desc": "比较函数的上下文。"
}
],
"annotation": {},
"desc": "删除第一个满足条件的元素。",
"name": "slist_remove",
"desc": "获取资源。",
"name": "tk_semaphore_wait",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
@ -3156,14 +3107,14 @@
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
"type": "tk_semaphore_t*",
"name": "semaphore",
"desc": "信号量对象。"
}
],
"annotation": {},
"desc": "删除全部元素。",
"name": "slist_remove_all",
"desc": "释放资源。",
"name": "tk_semaphore_post",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
@ -3172,167 +3123,14 @@
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
},
{
"type": "void*",
"name": "data",
"desc": "待追加的元素。"
"type": "tk_semaphore_t*",
"name": "semaphore",
"desc": "信号量对象。"
}
],
"annotation": {},
"desc": "在尾巴追加一个元素。",
"name": "slist_append",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
},
{
"type": "void*",
"name": "data",
"desc": "待追加的元素。"
}
],
"annotation": {},
"desc": "在头部追加一个元素。",
"name": "slist_prepend",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
},
{
"type": "tk_visit_t",
"name": "visit",
"desc": "遍历函数。"
},
{
"type": "void*",
"name": "ctx",
"desc": "遍历函数的上下文。"
}
],
"annotation": {},
"desc": "遍历元素。",
"name": "slist_foreach",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
}
],
"annotation": {},
"desc": "弹出最后一个元素。",
"name": "slist_tail_pop",
"return": {
"type": "ret_t",
"desc": "成功返回最后一个元素失败返回NULL。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
}
],
"annotation": {},
"desc": "弹出第一个元素。",
"name": "slist_head_pop",
"return": {
"type": "ret_t",
"desc": "成功返回最后一个元素失败返回NULL。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
}
],
"annotation": {},
"desc": "返回元素个数。",
"name": "slist_size",
"return": {
"type": "int32_t",
"desc": "返回元素个数。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
},
{
"type": "void*",
"name": "ctx",
"desc": "比较函数的上下文。"
}
],
"annotation": {},
"desc": "返回满足条件元素的个数。",
"name": "slist_count",
"return": {
"type": "int32_t",
"desc": "返回元素个数。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
}
],
"annotation": {},
"desc": "清除单向链表中的元素。",
"name": "slist_deinit",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
}
],
"annotation": {},
"desc": "清除单向链表中的元素,并释放单向链表对象。",
"name": "slist_destroy",
"desc": "销毁信号量对象。",
"name": "tk_semaphore_destroy",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
@ -3340,35 +3138,10 @@
}
],
"events": [],
"properties": [
{
"name": "first",
"desc": "首节点。",
"type": "slist_node_t*",
"annotation": {
"readable": true
}
},
{
"name": "destroy",
"desc": "元素销毁函数。",
"type": "tk_destroy_t",
"annotation": {
"readable": true
}
},
{
"name": "compare",
"desc": "元素比较函数。",
"type": "tk_compare_t",
"annotation": {
"readable": true
}
}
],
"header": "tkc/slist.h",
"desc": "单向链表\n\n用slist\\_init初始化时用slist\\_deinit释放。如\n\n```c\nslist_t slist;\nslist_init(&slist, destroy, compare);\n...\nslist_deinit(&slist);\n```\n\n用slist\\_create创建时用slist\\_destroy销毁。如\n\n```c\nslist_t* slist = slist_create(destroy, compare);\n...\nslist_destroy(slist);\n```",
"name": "slist_t",
"properties": [],
"header": "tkc/semaphore.h",
"desc": "信号量。",
"name": "tk_semaphore_t",
"level": 1
},
{
@ -9276,6 +9049,73 @@
"name": "fs_t",
"level": 1
},
{
"type": "class",
"methods": [],
"events": [],
"properties": [
{
"name": "size",
"desc": "参数个数。",
"type": "uint32_t",
"annotation": {
"readable": true
}
},
{
"name": "args",
"desc": "参数列表。",
"type": "value_t*",
"annotation": {
"readable": true
}
}
],
"header": "tkc/fscript.h",
"desc": "扩展函数的参数。",
"name": "fscript_args_t",
"level": 1
},
{
"type": "class",
"methods": [
{
"params": [
{
"type": "object_t*",
"name": "obj",
"desc": "脚本执行上下文。"
},
{
"type": "const char*",
"name": "script",
"desc": "脚本代码。"
},
{
"type": "value_t*",
"name": "result",
"desc": "执行结果。"
}
],
"annotation": {},
"desc": "",
"name": "fscript_eval",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
}
],
"events": [],
"properties": [],
"header": "tkc/fscript.h",
"desc": "一个简易的函数式脚本。",
"name": "fscript_t",
"annotation": {
"fake": true
},
"level": 1
},
{
"type": "class",
"methods": [
@ -14234,91 +14074,6 @@
},
"level": 1
},
{
"type": "class",
"methods": [
{
"params": [
{
"type": "uint32_t",
"name": "value",
"desc": "初始值。"
},
{
"type": "const char*",
"name": "name",
"desc": "名称。"
}
],
"annotation": {},
"desc": "创建信号量对象。",
"name": "tk_semaphore_create",
"return": {
"type": "tk_semaphore_t*",
"desc": "semaphore对象。"
}
},
{
"params": [
{
"type": "tk_semaphore_t*",
"name": "semaphore",
"desc": "信号量对象。"
},
{
"type": "uint32_t",
"name": "timeout_ms",
"desc": "超时时间。"
}
],
"annotation": {},
"desc": "获取资源。",
"name": "tk_semaphore_wait",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "tk_semaphore_t*",
"name": "semaphore",
"desc": "信号量对象。"
}
],
"annotation": {},
"desc": "释放资源。",
"name": "tk_semaphore_post",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "tk_semaphore_t*",
"name": "semaphore",
"desc": "信号量对象。"
}
],
"annotation": {},
"desc": "销毁信号量对象。",
"name": "tk_semaphore_destroy",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
}
],
"events": [],
"properties": [],
"header": "tkc/semaphore.h",
"desc": "信号量。",
"name": "tk_semaphore_t",
"level": 1
},
{
"type": "class",
"methods": [
@ -14474,6 +14229,318 @@
"name": "action_thread_t",
"level": 1
},
{
"type": "class",
"methods": [
{
"params": [
{
"type": "tk_destroy_t",
"name": "destroy",
"desc": "元素销毁函数。"
},
{
"type": "tk_compare_t",
"name": "compare",
"desc": "元素比较函数。"
}
],
"annotation": {
"constructor": true
},
"desc": "创建slist对象",
"name": "slist_create",
"return": {
"type": "slist_t*",
"desc": "单向链表对象。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
},
{
"type": "tk_destroy_t",
"name": "destroy",
"desc": "元素销毁函数。"
},
{
"type": "tk_compare_t",
"name": "compare",
"desc": "元素比较函数。"
}
],
"annotation": {},
"desc": "初始化slist对象",
"name": "slist_init",
"return": {
"type": "slist_t*",
"desc": "单向链表对象。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
},
{
"type": "void*",
"name": "ctx",
"desc": "比较函数的上下文。"
}
],
"annotation": {},
"desc": "查找第一个满足条件的元素。",
"name": "slist_find",
"return": {
"type": "void*",
"desc": "如果找到返回满足条件的对象否则返回NULL。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
},
{
"type": "void*",
"name": "ctx",
"desc": "比较函数的上下文。"
}
],
"annotation": {},
"desc": "删除第一个满足条件的元素。",
"name": "slist_remove",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
}
],
"annotation": {},
"desc": "删除全部元素。",
"name": "slist_remove_all",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
},
{
"type": "void*",
"name": "data",
"desc": "待追加的元素。"
}
],
"annotation": {},
"desc": "在尾巴追加一个元素。",
"name": "slist_append",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
},
{
"type": "void*",
"name": "data",
"desc": "待追加的元素。"
}
],
"annotation": {},
"desc": "在头部追加一个元素。",
"name": "slist_prepend",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
},
{
"type": "tk_visit_t",
"name": "visit",
"desc": "遍历函数。"
},
{
"type": "void*",
"name": "ctx",
"desc": "遍历函数的上下文。"
}
],
"annotation": {},
"desc": "遍历元素。",
"name": "slist_foreach",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
}
],
"annotation": {},
"desc": "弹出最后一个元素。",
"name": "slist_tail_pop",
"return": {
"type": "ret_t",
"desc": "成功返回最后一个元素失败返回NULL。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
}
],
"annotation": {},
"desc": "弹出第一个元素。",
"name": "slist_head_pop",
"return": {
"type": "ret_t",
"desc": "成功返回最后一个元素失败返回NULL。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
}
],
"annotation": {},
"desc": "返回元素个数。",
"name": "slist_size",
"return": {
"type": "int32_t",
"desc": "返回元素个数。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
},
{
"type": "void*",
"name": "ctx",
"desc": "比较函数的上下文。"
}
],
"annotation": {},
"desc": "返回满足条件元素的个数。",
"name": "slist_count",
"return": {
"type": "int32_t",
"desc": "返回元素个数。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
}
],
"annotation": {},
"desc": "清除单向链表中的元素。",
"name": "slist_deinit",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
},
{
"params": [
{
"type": "slist_t*",
"name": "slist",
"desc": "单向链表对象。"
}
],
"annotation": {},
"desc": "清除单向链表中的元素,并释放单向链表对象。",
"name": "slist_destroy",
"return": {
"type": "ret_t",
"desc": "返回RET_OK表示成功否则表示失败。"
}
}
],
"events": [],
"properties": [
{
"name": "first",
"desc": "首节点。",
"type": "slist_node_t*",
"annotation": {
"readable": true
}
},
{
"name": "destroy",
"desc": "元素销毁函数。",
"type": "tk_destroy_t",
"annotation": {
"readable": true
}
},
{
"name": "compare",
"desc": "元素比较函数。",
"type": "tk_compare_t",
"annotation": {
"readable": true
}
}
],
"header": "tkc/slist.h",
"desc": "单向链表\n\n用slist\\_init初始化时用slist\\_deinit释放。如\n\n```c\nslist_t slist;\nslist_init(&slist, destroy, compare);\n...\nslist_deinit(&slist);\n```\n\n用slist\\_create创建时用slist\\_destroy销毁。如\n\n```c\nslist_t* slist = slist_create(destroy, compare);\n...\nslist_destroy(slist);\n```",
"name": "slist_t",
"level": 1
},
{
"type": "class",
"methods": [