-
Notifications
You must be signed in to change notification settings - Fork 84
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
Generated .gir data contains incomplete type definitions #129
Comments
The two problematic types, Might a solution be to change the |
The SIMD types are part of the public C API, but they are not part of the introspectable API because:
Additionally, the sizing information only makes sense if you're trying to allocate any wrapper type manually, which is not the intended behaviour; Graphene provides allocator functions for that exact reason. From an introspection perspective, I could probably make |
Thanks for the clarifications!
Correct me if I'm wrong, but private field names of public API C types are mangled when used outside of graphene itself, right? Then why not simply hide them completely in the introspection API? Wouldn't that avoid the need of handling this kind of equivalence? |
gobject-introspection cannot "hide" public fields in introspected structures: even private fields need to be appropriately added to the introspection data, even if they cannot be accessed. All the fields inside Graphene public structures are already marked as |
Experienced behavior
Generating
.gir
data produces incomplete field type declaration:Expected behavior
Every (required) type are properly detected and generated
Graphene-1.0.gir
does not contain incomplete type elements.Steps to reproduce
Building from sources using meson generates
Graphene-1.0.gir
.Operating system in use
JHBuild environment on Fedora 29.
SIMD implementation in use
Irrelevant.
The text was updated successfully, but these errors were encountered: