@@ -15,7 +15,7 @@ extern "C" {
15
15
#include " lwip/priv/tcpip_priv.h"
16
16
17
17
typedef struct {
18
- struct tcpip_api_call call;
18
+ struct tcpip_api_call_data call;
19
19
udp_pcb * pcb;
20
20
const ip_addr_t *addr;
21
21
uint16_t port;
@@ -24,7 +24,7 @@ typedef struct {
24
24
err_t err;
25
25
} udp_api_call_t ;
26
26
27
- static err_t _udp_connect_api (struct tcpip_api_call *api_call_msg){
27
+ static err_t _udp_connect_api (struct tcpip_api_call_data *api_call_msg){
28
28
udp_api_call_t * msg = (udp_api_call_t *)api_call_msg;
29
29
msg->err = udp_connect (msg->pcb , msg->addr , msg->port );
30
30
return msg->err ;
@@ -35,11 +35,11 @@ static err_t _udp_connect(struct udp_pcb *pcb, const ip_addr_t *addr, u16_t port
35
35
msg.pcb = pcb;
36
36
msg.addr = addr;
37
37
msg.port = port;
38
- tcpip_api_call (_udp_connect_api, (struct tcpip_api_call *)&msg);
38
+ tcpip_api_call (_udp_connect_api, (struct tcpip_api_call_data *)&msg);
39
39
return msg.err ;
40
40
}
41
41
42
- static err_t _udp_disconnect_api (struct tcpip_api_call *api_call_msg){
42
+ static err_t _udp_disconnect_api (struct tcpip_api_call_data *api_call_msg){
43
43
udp_api_call_t * msg = (udp_api_call_t *)api_call_msg;
44
44
msg->err = 0 ;
45
45
udp_disconnect (msg->pcb );
@@ -49,10 +49,10 @@ static err_t _udp_disconnect_api(struct tcpip_api_call *api_call_msg){
49
49
static void _udp_disconnect (struct udp_pcb *pcb){
50
50
udp_api_call_t msg;
51
51
msg.pcb = pcb;
52
- tcpip_api_call (_udp_disconnect_api, (struct tcpip_api_call *)&msg);
52
+ tcpip_api_call (_udp_disconnect_api, (struct tcpip_api_call_data *)&msg);
53
53
}
54
54
55
- static err_t _udp_remove_api (struct tcpip_api_call *api_call_msg){
55
+ static err_t _udp_remove_api (struct tcpip_api_call_data *api_call_msg){
56
56
udp_api_call_t * msg = (udp_api_call_t *)api_call_msg;
57
57
msg->err = 0 ;
58
58
udp_remove (msg->pcb );
@@ -62,10 +62,10 @@ static err_t _udp_remove_api(struct tcpip_api_call *api_call_msg){
62
62
static void _udp_remove (struct udp_pcb *pcb){
63
63
udp_api_call_t msg;
64
64
msg.pcb = pcb;
65
- tcpip_api_call (_udp_remove_api, (struct tcpip_api_call *)&msg);
65
+ tcpip_api_call (_udp_remove_api, (struct tcpip_api_call_data *)&msg);
66
66
}
67
67
68
- static err_t _udp_bind_api (struct tcpip_api_call *api_call_msg){
68
+ static err_t _udp_bind_api (struct tcpip_api_call_data *api_call_msg){
69
69
udp_api_call_t * msg = (udp_api_call_t *)api_call_msg;
70
70
msg->err = udp_bind (msg->pcb , msg->addr , msg->port );
71
71
return msg->err ;
@@ -76,11 +76,11 @@ static err_t _udp_bind(struct udp_pcb *pcb, const ip_addr_t *addr, u16_t port){
76
76
msg.pcb = pcb;
77
77
msg.addr = addr;
78
78
msg.port = port;
79
- tcpip_api_call (_udp_bind_api, (struct tcpip_api_call *)&msg);
79
+ tcpip_api_call (_udp_bind_api, (struct tcpip_api_call_data *)&msg);
80
80
return msg.err ;
81
81
}
82
82
83
- static err_t _udp_sendto_api (struct tcpip_api_call *api_call_msg){
83
+ static err_t _udp_sendto_api (struct tcpip_api_call_data *api_call_msg){
84
84
udp_api_call_t * msg = (udp_api_call_t *)api_call_msg;
85
85
msg->err = udp_sendto (msg->pcb , msg->pb , msg->addr , msg->port );
86
86
return msg->err ;
@@ -92,11 +92,11 @@ static err_t _udp_sendto(struct udp_pcb *pcb, struct pbuf *pb, const ip_addr_t *
92
92
msg.addr = addr;
93
93
msg.port = port;
94
94
msg.pb = pb;
95
- tcpip_api_call (_udp_sendto_api, (struct tcpip_api_call *)&msg);
95
+ tcpip_api_call (_udp_sendto_api, (struct tcpip_api_call_data *)&msg);
96
96
return msg.err ;
97
97
}
98
98
99
- static err_t _udp_sendto_if_api (struct tcpip_api_call *api_call_msg){
99
+ static err_t _udp_sendto_if_api (struct tcpip_api_call_data *api_call_msg){
100
100
udp_api_call_t * msg = (udp_api_call_t *)api_call_msg;
101
101
msg->err = udp_sendto_if (msg->pcb , msg->pb , msg->addr , msg->port , msg->netif );
102
102
return msg->err ;
@@ -109,7 +109,7 @@ static err_t _udp_sendto_if(struct udp_pcb *pcb, struct pbuf *pb, const ip_addr_
109
109
msg.port = port;
110
110
msg.pb = pb;
111
111
msg.netif = netif;
112
- tcpip_api_call (_udp_sendto_if_api, (struct tcpip_api_call *)&msg);
112
+ tcpip_api_call (_udp_sendto_if_api, (struct tcpip_api_call_data *)&msg);
113
113
return msg.err ;
114
114
}
115
115
0 commit comments