Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move REST API common code to rest_api.cpp/h #7674

Merged
merged 1 commit into from Mar 19, 2024

Conversation

manup
Copy link
Member

@manup manup commented Mar 19, 2024

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.

@manup manup added this to the v2.26.2-beta milestone Mar 19, 2024
@manup manup merged commit 7f3c45c into dresden-elektronik:master Mar 19, 2024
@manup manup deleted the rest_api branch March 19, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant