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

Remove dependency on config from coreMQTT headers #274

Merged
merged 4 commits into from
Feb 1, 2024

Conversation

archigup
Copy link
Member

core_mqtt_serializer.h included the user coreMQTT config, which spills
the config header's contents into all consumers of coreMQTT's headers.
Macros from the config are no longer used in the the API, so this is
also no longer used for anything, so can be removed.

The loggging defaults were split out since they are not namespaced to
coreMQTT, and they previously leaked to all files including a coreMQTT
header. Splitting them allowed the logging defaults to only be pulled
into coreMQTT source files. Now that no header files use the config
headers, and thus all coreMQTT config only affects coreMQTT source
files, the split is no longer needed.

@archigup archigup force-pushed the clean-api-config branch 3 times, most recently from 6662804 to 070e3ba Compare January 31, 2024 23:49
The NetworkContext struct should be defined in each c file, not in the
config h file. The API uses it as an opaque type.

CMock needs a workaround for it's c files though, as it does not support
opaque types.
@archigup archigup force-pushed the clean-api-config branch 2 times, most recently from f8afe05 to a08bb48 Compare February 1, 2024 00:18
The NetworkContext struct should be defined in each c file, not in the
config h file. The API uses it as an opaque type.
core_mqtt_serializer.h included the user coreMQTT config, which spills
the config header's contents into all consumers of coreMQTT's headers.
Macros from the config are no longer used in the the API, so this is
also no longer used for anything, so can be removed.
The loggging defaults were split out since they are not namespaced to
coreMQTT, and they previously leaked to all files including a coreMQTT
header. Splitting them allowed the logging defaults to only be pulled
into coreMQTT source files. Now that no header files use the config
headers, and thus all coreMQTT config only affects coreMQTT source
files, the split is no longer needed.
@archigup archigup merged commit b9dfc36 into FreeRTOS:main Feb 1, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants