add extra_ctx on timer/idle

This commit is contained in:
lixianjing 2021-03-23 17:30:43 +08:00
parent 9d136bb645
commit 3afbd586eb
2 changed files with 15 additions and 0 deletions

View File

@ -62,6 +62,13 @@ struct _idle_info_t {
* idle回调函数上下文
*/
void* ctx;
/**
* @property {void*} extra_ctx
* @annotation ["readable", "scriptable"]
* idle回调函数上下文
*/
void* extra_ctx;
/**
* @property {uint32_t} id

View File

@ -64,6 +64,14 @@ struct _timer_info_t {
*
*/
void* ctx;
/**
* @property {void*} extra_ctx
* @annotation ["readable", "scriptable"]
*
*
*/
void* extra_ctx;
/**
* @property {uint32_t} id