sys.h 414 B

1234567891011121314151617181920212223242526272829
  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_get_path(char *path, char *name);
  19. int sys_get_net(NetworkInfo_t *para, int ipVersion);
  20. int sys_set_net(NetworkInfo_t *para, int ipVersion);
  21. #endif