hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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