The de_web_plugin_private.h header is currently a sink hole for all kinds of unrelated code.
The PR moves parts which are only needed by REST API handling code into a new module rest_api.h.
REST API handling code doesn't need to know and depend on all what is in de_web_plugin_private.h. Headers like math.h and tuya.h which where also included are now only included in .cpp files which need them. Main goal here is to reduce coupling and also speed up compilation a bit as side effect.
The
de_web_plugin_private.h
header is currently a sink hole for all kinds of unrelated code. The PR moves parts which are only needed by REST API handling code into a new modulerest_api.h
.REST API handling code doesn't need to know and depend on all what is in
de_web_plugin_private.h
. Headers likemath.h
andtuya.h
which where also included are now only included in.cpp
files which need them. Main goal here is to reduce coupling and also speed up compilation a bit as side effect.