blob: efd121915744edc64b58f926262e176bf6331613 [file] [log] [blame]
b.liu4e243dc2023-11-27 11:20:00 +08001#include <stdio.h>
2#include <stdlib.h>
3#include <errno.h>
4#include <string.h>
5#include <sys/types.h>
6#include <sys/socket.h>
7#include <sys/un.h>
8#include <unistd.h>
9#include <dlfcn.h>
10#include <pthread.h>
11#include <stdbool.h>
12#include <time.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18
19struct time_info_t
20{
21 long sleep_start_time;
22 long wakeup_time;
23};
24
25int lynq_autosleep_enable(void);
26int lynq_autosleep_disable(void);
27int lynq_wait_wakeup_event(long *sleep_start_time, long * wakeup_time);
28
29#ifdef MOBILETEK_TARGET_PLATFORM_T106
30int lynq_set_lpmode(int lp_mode);
31int release_wake_lock(char *name);
32int acquire_wake_lock(int lock, char *name);
33#endif
34
35#ifdef __cplusplus
36}
37#endif