1 /* 2 * Copyright (C) 2022 Huawei Technologies Co., Ltd. 3 * Licensed under the Mulan PSL v2. 4 * You can use this software according to the terms and conditions of the Mulan PSL v2. 5 * You may obtain a copy of Mulan PSL v2 at: 6 * http://license.coscl.org.cn/MulanPSL2 7 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR 8 * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR 9 * PURPOSE. 10 * See the Mulan PSL v2 for more details. 11 */ 12 #ifndef LIBTIMER_TIMER_EVENT_H 13 #define LIBTIMER_TIMER_EVENT_H 14 #include <sys_timer.h> 15 16 timer_event *tee_time_event_create(sw_timer_event_handler handler, int32_t timer_class, void *priv_data); 17 uint32_t tee_time_event_destroy(timer_event *t_event); 18 uint32_t tee_time_event_start(timer_event *t_event, timeval_t *time); 19 uint32_t tee_time_event_stop(timer_event *t_event); 20 uint32_t tee_time_event_check(timer_notify_data_kernel *timer_data); 21 uint64_t tee_time_event_get_expire(timer_event *t_event); 22 23 #endif 24