mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-30 12:50:58 +00:00
mgr::priv -> mgr::ifp, use explicit type
This commit is contained in:
1 parent
19cbb27b4c
commit
b0e4069bb7
6 files changed
+46
-66
No files matched your search
+1
-4
@@ -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
|
||||
Reference in new issue
Block a user