linuxOS_AP05/external/eq_drc_process/Rk_wake_lock.h
2025-06-02 13:59:07 +08:00

22 lines
435 B
C
Executable File

#ifndef RK_WAKE_LOCK_H
#define RK_WAKE_LOCK_H
#ifdef __cplusplus
extern "C" {
#endif
struct rk_wake_lock;
struct rk_wake_lock* RK_wake_lock_new(const char *id);//the id must be unique
void RK_wake_lock_delete(struct rk_wake_lock* lock);
int RK_acquire_wake_lock(struct rk_wake_lock* lock);
int RK_release_wake_lock(struct rk_wake_lock* lock);
int RK_wait_all_wake_lock_release(int timeout_ms);
#ifdef __cplusplus
}
#endif
#endif