forked from xuos/xiuos
modify code standard
This commit is contained in:
@@ -43,9 +43,9 @@ struct Socket
|
||||
{
|
||||
uint8_t fd;
|
||||
uint8_t status ;
|
||||
struct ADDRESS_IPV4 src_ip;
|
||||
struct AddressIpv4 src_ip;
|
||||
uint16_t src_port;
|
||||
struct ADDRESS_IPV4 dst_ip;
|
||||
struct AddressIpv4 dst_ip;
|
||||
uint16_t dst_port;
|
||||
uint8_t type;
|
||||
uint8_t af_type;
|
||||
@@ -59,24 +59,24 @@ struct ATDone
|
||||
int (*ATOperateUp)(struct AdapterAT *adapterAT);
|
||||
int (*ATOperateDown)(struct AdapterAT *adapterAT);
|
||||
int (*ATOperateAddr)(struct AdapterAT *adapterAT, uint ip, uint gateway, uint netmask);
|
||||
int (*ATOperateDns)(struct AdapterAT *adapterAT, struct ADDRESS_IPV4 *dns_addr, uint8 dns_count);
|
||||
int (*ATOperateDns)(struct AdapterAT *adapterAT, struct AddressIpv4 *dns_addr, uint8 dns_count);
|
||||
int (*ATOperateDHCP)(struct AdapterAT *adapterAT, bool enable);
|
||||
int (*ATPing)(struct AdapterAT *adapterAT, const char *destination, struct ping_result *ping_resp);
|
||||
int (*ATPing)(struct AdapterAT *adapterAT, const char *destination, struct PingResult *ping_resp);
|
||||
int (*ATNetstat)(struct AdapterAT *adapterAT);
|
||||
int (*ATOperateDefault)(struct AdapterAT *adapterAT);
|
||||
|
||||
int (*ATSocketCreate)(struct AdapterAT *adapterAT , uint8_t socket_fd , uint8_t type , uint8_t af_type );
|
||||
int (*ATSocketConnect)(struct AdapterAT *adapterAT , uint8_t socket_fd , struct ADDRESS_IPV4 dst_ip , uint16_t dst_port, uint8 is_client);
|
||||
int (*ATSocketConnect)(struct AdapterAT *adapterAT , uint8_t socket_fd , struct AddressIpv4 dst_ip , uint16_t dst_port, uint8 is_client);
|
||||
int (*ATSocketClose)(struct AdapterAT *adapterAT , uint8_t socket_fd );
|
||||
};
|
||||
|
||||
struct AdapterAT {
|
||||
struct Adapter parent;
|
||||
struct ATAgent *agent;
|
||||
struct ADDRESS_IPV4 ip;
|
||||
struct ADDRESS_IPV4 netmask;
|
||||
struct ADDRESS_IPV4 gateway;
|
||||
struct ADDRESS_IPV4 dns[DNS_COUNT];
|
||||
struct AddressIpv4 ip;
|
||||
struct AddressIpv4 netmask;
|
||||
struct AddressIpv4 gateway;
|
||||
struct AddressIpv4 dns[DNS_COUNT];
|
||||
uint32 at_adapter_id;
|
||||
struct Socket socket[SOCKET_MAX];
|
||||
uint8 hardware_address_len;
|
||||
@@ -84,7 +84,7 @@ struct AdapterAT {
|
||||
uint16 flags;
|
||||
uint16 mtu;
|
||||
|
||||
void (*change_cb )(struct AdapterAT *adapterAT, enum cb_type type, enum change_type ch_type_);
|
||||
void (*change_cb )(struct AdapterAT *adapterAT, enum CbType type, enum ChangeType ch_type_);
|
||||
|
||||
struct ATDone atdone;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user