b.liu | 4e243dc | 2023-11-27 11:20:00 +0800 | [diff] [blame] | 1 | #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 |
| 15 | extern "C" { |
| 16 | #endif |
| 17 | |
| 18 | |
| 19 | struct time_info_t |
| 20 | { |
| 21 | long sleep_start_time; |
| 22 | long wakeup_time; |
| 23 | }; |
| 24 | |
| 25 | int lynq_autosleep_enable(void); |
| 26 | int lynq_autosleep_disable(void); |
| 27 | int lynq_wait_wakeup_event(long *sleep_start_time, long * wakeup_time); |
| 28 | |
| 29 | #ifdef MOBILETEK_TARGET_PLATFORM_T106 |
| 30 | int lynq_set_lpmode(int lp_mode); |
| 31 | int release_wake_lock(char *name); |
| 32 | int acquire_wake_lock(int lock, char *name); |
| 33 | #endif |
| 34 | |
| 35 | #ifdef __cplusplus |
| 36 | } |
| 37 | #endif |