mirror of
https://github.com/open5gs/open5gs.git
synced 2025-11-21 15:08:08 +00:00
timer library update
This commit is contained in:
@@ -23,15 +23,19 @@ typedef struct _tm_service_t {
|
||||
typedef c_uintptr_t tm_block_id;
|
||||
|
||||
typedef void (*expire_func_t)(c_uintptr_t data,
|
||||
c_uintptr_t arg1, c_uintptr_t arg2, c_uintptr_t arg3);
|
||||
c_uintptr_t param1, c_uintptr_t param2, c_uintptr_t param3,
|
||||
c_uintptr_t param4, c_uintptr_t param5, c_uintptr_t param6);
|
||||
|
||||
typedef struct _tm_desc_t {
|
||||
tm_type_e type;
|
||||
c_uint32_t duration;
|
||||
expire_func_t expire_func;
|
||||
c_uintptr_t arg1;
|
||||
c_uintptr_t arg2;
|
||||
c_uintptr_t arg3;
|
||||
c_uintptr_t param1;
|
||||
c_uintptr_t param2;
|
||||
c_uintptr_t param3;
|
||||
c_uintptr_t param4;
|
||||
c_uintptr_t param5;
|
||||
c_uintptr_t param6;
|
||||
} tm_desc_t;
|
||||
|
||||
CORE_DECLARE(status_t) tm_init(void);
|
||||
@@ -43,13 +47,16 @@ CORE_DECLARE(void) tm_service_init(tm_service_t *tm_service);
|
||||
CORE_DECLARE(status_t) tm_execute_tm_service(
|
||||
tm_service_t *p_tm_s, c_uintptr_t data);
|
||||
|
||||
CORE_DECLARE(tm_block_id) tm_create(tm_service_t *tm_service);
|
||||
CORE_DECLARE(tm_block_id) tm_create(tm_service_t *tm_service,
|
||||
tm_type_e type, c_uint32_t duration, expire_func_t expire_func);
|
||||
CORE_DECLARE(void) tm_delete(tm_block_id id);
|
||||
CORE_DECLARE(status_t) tm_set(tm_block_id id, tm_type_e type,
|
||||
c_uint32_t duration, expire_func_t expire_func,
|
||||
c_uintptr_t arg1, c_uintptr_t arg2, c_uintptr_t arg3);
|
||||
CORE_DECLARE(status_t) tm_set_duration(tm_block_id id, c_uint32_t duration);
|
||||
CORE_DECLARE(status_t) tm_set_by_desc(tm_block_id id, tm_desc_t *desc);
|
||||
CORE_DECLARE(status_t) tm_set_param1(tm_block_id id, c_uintptr_t param);
|
||||
CORE_DECLARE(status_t) tm_set_param2(tm_block_id id, c_uintptr_t param);
|
||||
CORE_DECLARE(status_t) tm_set_param3(tm_block_id id, c_uintptr_t param);
|
||||
CORE_DECLARE(status_t) tm_set_param4(tm_block_id id, c_uintptr_t param);
|
||||
CORE_DECLARE(status_t) tm_set_param5(tm_block_id id, c_uintptr_t param);
|
||||
CORE_DECLARE(status_t) tm_set_param6(tm_block_id id, c_uintptr_t param);
|
||||
CORE_DECLARE(status_t) tm_start(tm_block_id id);
|
||||
CORE_DECLARE(status_t) tm_stop(tm_block_id id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user