| 123456789101112131415161718192021222324252627282930313233343536373839 |
- #ifndef __SYS_H__
- #define __SYS_H__
- #include <stdint.h>
- #include <pthread.h>
- #include "common.h"
- enum {
- IP_DHCP=0,
- IP_STATIC,
- };
- enum {
- IP_ERR=0,
- IP_V4,
- IP_V6,
- };
- int sys_init(void);
- int sys_reboot(void);
- int sys_set_factory(void);
- int sys_chmod(void);
- int sys_get_disk_ava_MB(char *path);
- int sys_get_mem_ava_MB(void);
- int sys_is_running(char *prog);
- int sys_get_path(char *path, char *name);
- int sys_get_net(NetworkInfo_t *para, int ipVersion);
- int sys_set_net(NetworkInfo_t *para, int ipVersion);
- int sys_get_mac(char *mac, int maclen);
- int sys_get_chip_id(int *id);
- int sys_ip_check(char *ip);
- int sys_get_prod(GlobalDeviceInfo *info);
- int sys_kill(char *proc);
- int sys_restart_app(void);
- #endif
|