|
ESPHome 2026.12.0-dev
|
Non-owning reference to a JSON build callable, valid only for the call it is passed to. More...
#include <json_util.h>
Public Member Functions | |
| void | operator() (JsonObject root) const |
Data Fields | |
| void(* | fn )(void *ctx, JsonObject root) |
| void * | ctx |
Non-owning reference to a JSON build callable, valid only for the call it is passed to.
Lets one out-of-line body run any callable without a std::function, which allocates for captures over 8 bytes.
Definition at line 175 of file json_util.h.
|
inline |
Definition at line 178 of file json_util.h.
| void* esphome::json::JsonBuildRef::ctx |
Definition at line 177 of file json_util.h.
| void(* esphome::json::JsonBuildRef::fn) (void *ctx, JsonObject root) |
Definition at line 176 of file json_util.h.