-
Notifications
You must be signed in to change notification settings - Fork 206
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
Document and restructure libnetplan's public API symbols #438
Conversation
a41ac1e
to
4bff7e6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I just left a few suggestions and notes about typos.
It's not properly implemented and unused.
Moving all the functions related to NetplanNetDefinition into netdef.h - Mostly "netplan_netdef_*" functions - Functions which take NetplanNetDefinition* as their first argument Moving all the functions related to NetplanState into state.h - Mostly "netplan_state_*" functions - Functions which take NetplanState* as their first argument - Iterator functions that work on NetplanState* Leaving include/netplan.h mostly empty, as a bare aggregation of the other headers, so we don't break NetworkManager, which includes <netplan/netplan.h>.
Thanks, those were some nice finds! I fixed it all as suggested and rebased. Let's get this merged, once CI is green. @rkratky Feel free to still leave your comments in here. If anything, I can fix it in a follow-up PR. |
8354b0a
to
1fb01cd
Compare
The NetworkManager CI is failing again... But it is unrelated to these changes and needs fixing independently in the CI images. |
Description
Please review commit-by-commit.
It's mostly adding Doxygen comments to our public functions.
But also dropping one public symbol from the API (
netplan_generate
), which is not properly implemented and still unused, so let's get rid of it until we grow a need for it and can have it implemented the correct way.Finally, I'm moving around the documented declarations into their related header files:
NetplanParser*
NetplanState*
NetplanNetDefinition*
Note
You can ignore the final commit (abi-compat: Update for dropped 'netplan_generate' symbol), which is auto-generated noise to
abi-compat/jammy_1.0.xml
.FR-6079
Checklist
make check
successfully.make check-coverage
).