-
Notifications
You must be signed in to change notification settings - Fork 318
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
Allow access to bindings symbols names #907
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What I'm trying to do:
cbindgen
to generate a C header, to use the library from C-C link-args=-Wl,--export-dynamic-symbol=<regex of symbols to export>
(or another ldd option), in order to load plugins (written in C) that use the library symbolsFor step 3, I need the list of symbols in the C header. I can parse the header or fill this information by hand, but
cbindgen
already has the list! What is missing is a way to access it.I can see two ways of solving this problem (both may be useful):
Bindings
impl: add a public API to read theitems
of the bindings (with methods to get the exported name of an item of any type), for instance:I will then be able to use
--export-dynamic-symbol-list=<exported file>
in order to export the symbols properly.If someone guides me a little bit, I could try to implement one of the aforementioned features (or both, who knows?) 🙂.
The text was updated successfully, but these errors were encountered: