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