forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-03-13 25c72f09e887f85fcff4a3f978d294da97ab1420
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