Skip to content

Conversation

@johann-cm
Copy link
Contributor

I'm proposing to add the get_sections method to the Uci struct.

I had the following problem: I need to know all sections in a package, but I don't know the names of all the sections.
get_sections gives you a list of all section names.

In the process of implementing that method, I've also re-implemented some C-macros that bindgen is not able to translate to rust automatically. I've implemented them directly in the libuci-sys crate, as they are (more or less) direct translations of the C macros and don't feel particularly rusty.

bindgen does not generate bindings for function-like macros. You have to
re-implement them by hand in rust.
adds the ability to list all sections in a package
Copy link
Member

@pulsastrix pulsastrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
thanks for your contributions and sorry for taking a while to review them 😅

All three pull requests look good to me.

@johann-cm
Copy link
Contributor Author

Nice 👍

I went ahead and resolved the conflicts with the new main on this PR

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.

2 participants