mirror of
https://github.com/esphome/esphome.git
synced 2026-09-14 16:48:40 +00:00
Merge branch 'cache-lwip-sock-pointers' into integration
# Conflicts: # esphome/core/lwip_fast_select.h
This commit is contained in:
@@ -13,12 +13,8 @@ struct lwip_sock;
|
||||
|
||||
// Byte offset of rcvevent (s16_t) within struct lwip_sock.
|
||||
// Verified at compile time in lwip_fast_select.c via _Static_assert.
|
||||
#define ESPHOME_LWIP_SOCK_RCVEVENT_OFFSET 8
|
||||
|
||||
// Forward declare lwip_sock for C++ callers that store cached pointers.
|
||||
// The full definition is only available in the .c file (lwip/priv/sockets_priv.h
|
||||
// conflicts with C++ compilation units).
|
||||
struct lwip_sock;
|
||||
// Anonymous enum for a compile-time constant that works in both C and C++.
|
||||
enum { ESPHOME_LWIP_SOCK_RCVEVENT_OFFSET = 8 };
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user