sys.h 727 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef __SYS_H__
  2. #define __SYS_H__
  3. #include <stdint.h>
  4. #include <pthread.h>
  5. #include "common.h"
  6. enum {
  7. IP_DHCP=0,
  8. IP_STATIC,
  9. };
  10. enum {
  11. IP_ERR=0,
  12. IP_V4,
  13. IP_V6,
  14. };
  15. int sys_init(void);
  16. int sys_reboot(void);
  17. int sys_set_factory(void);
  18. int sys_chmod(void);
  19. int sys_get_disk_ava_MB(char *path);
  20. int sys_get_mem_ava_MB(void);
  21. int sys_is_running(char *prog);
  22. int sys_get_path(char *path, char *name);
  23. int sys_get_net(NetworkInfo_t *para, int ipVersion);
  24. int sys_set_net(NetworkInfo_t *para, int ipVersion);
  25. int sys_get_mac(char *mac, int maclen);
  26. int sys_get_chip_id(int *id);
  27. int sys_ip_check(char *ip);
  28. int sys_get_prod(GlobalDeviceInfo *info);
  29. int sys_kill(char *proc);
  30. int sys_restart_app(void);
  31. #endif