From 42e072a86885909611a109d13d3742718cb84fb3 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Thu, 29 Aug 2024 17:11:25 -0300 Subject: [PATCH] add macro to access mif --- src/net_builtin.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net_builtin.h b/src/net_builtin.h index 618ce991..e6e625d7 100644 --- a/src/net_builtin.h +++ b/src/net_builtin.h @@ -6,6 +6,7 @@ #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