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

+1 -4
View File
@@ -3,10 +3,9 @@
#include "arch.h"
#include "net.h"
#include "queue.h"
#include "str.h"
#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
@@ -91,5 +90,3 @@ struct mg_tcpip_spi {
void (*end)(void *); // SPI end: slave select high
uint8_t (*txn)(void *, uint8_t); // SPI transaction: write 1 byte, read reply
};
#endif