mgr::priv -> mgr::ifp, use explicit type

This commit is contained in:
Sergey Lyubka committed 2024-12-16 14:22:13 +00:00
1 parent 19cbb27b4c
commit b0e4069bb7
6 files changed
+46 -66

No files matched your search

+3 -6
View File
@@ -2150,6 +2150,7 @@ enum {
struct mg_dns {
const char *url; // DNS server URL
struct mg_connection *c; // DNS server connection
@@ -2176,8 +2177,8 @@ struct mg_mgr {
void *active_dns_requests; // DNS requests in progress
struct mg_timer *timers; // Active timers
int epoll_fd; // Used when MG_EPOLL_ENABLE=1
void *priv; // Used by the MIP stack
size_t extraconnsize; // Used by the MIP stack
struct mg_tcpip_if *ifp; // Builtin TCP/IP stack only. Interface pointer
size_t extraconnsize; // Builtin TCP/IP stack only. Extra space
MG_SOCKET_TYPE pipe; // Socketpair end for mg_wakeup()
#if MG_ENABLE_FREERTOS_TCP
SocketSet_t ss; // NOTE(lsm): referenced from socket struct
@@ -2711,9 +2712,7 @@ bool mg_ota_flash_end(struct mg_flash *flash);
#if defined(MG_ENABLE_TCPIP) && MG_ENABLE_TCPIP
struct mg_tcpip_if; // Mongoose TCP/IP network interface
#define MG_TCPIP_IFACE(mgr_) ((struct mg_tcpip_if *) (mgr_)->priv)
struct mg_tcpip_driver {
bool (*init)(struct mg_tcpip_if *); // Init driver
@@ -2799,8 +2798,6 @@ struct mg_tcpip_spi {
uint8_t (*txn)(void *, uint8_t); // SPI transaction: write 1 byte, read reply
};
#endif
// Macros to record timestamped events that happens with a connection.