use a more standard method of forward-declaring the structure

This commit is contained in:
Jeff Epler 2022-12-07 15:14:30 -06:00
parent 7583ccad2a
commit a1dd8405f4
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE

View File

@ -34,6 +34,8 @@
#include "components/esp-tls/esp_tls.h" #include "components/esp-tls/esp_tls.h"
typedef struct ssl_sslsocket_obj ssl_sslsocket_obj_t;
typedef struct { typedef struct {
mp_obj_base_t base; mp_obj_base_t base;
int num; int num;
@ -42,7 +44,7 @@ typedef struct {
int ipproto; int ipproto;
bool connected; bool connected;
socketpool_socketpool_obj_t *pool; socketpool_socketpool_obj_t *pool;
struct ssl_sslsocket_obj *ssl_socket; ssl_sslsocket_obj_t *ssl_socket;
mp_uint_t timeout_ms; mp_uint_t timeout_ms;
} socketpool_socket_obj_t; } socketpool_socket_obj_t;