-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Generates un-Copyable structs with #[derive(Copy)] in case of padding #534
Comments
@tmiasko @EPashkin Any ideas here? The field in question is <field name="padding" readable="0" private="1">
<array zero-terminated="0" c:type="void" fixed-size="19">
<type name="gpointer" c:type="void*"/>
</array>
</field> In other places where it works, it is <field name="_gst_reserved" readable="0" private="1">
<array zero-terminated="0" c:type="gpointer" fixed-size="3">
<type name="gpointer" c:type="gpointer"/>
</array>
</field> |
Changing |
This is the same as #478, but more severe now as things stop compiling, while before it was only a problem with the struct size. |
Apart from the fact that this is bug in gir xml, see #478 (comment), |
We use field "c_type" too aggressively in sys, |
Inner type stored in |
Renaming also works before https://github.com/gtk-rs/gir/blob/master/src/codegen/sys/ffi_type.rs#L125, |
Generally, the type OTOH it seems impossible to correctly detect the right thing from the GIR? |
@sdroege So decision up to you:
|
I'd vote for 1. (I can just fix it upstream anyway), and someone reports a bug against gobject-introspection? |
Then I close this issue |
You report to gobject-introspection, or @tmiasko who debugged this in detail? |
I had bad experience with gnome bugzilla, so I pass |
There is enough related bug reports in bugzilla that I don't feel that it is |
In GStreamer for example:
leads to
Problem here is (AFAIU) that this is
c_void
, it should be*mut c_void
orgpointer
.The text was updated successfully, but these errors were encountered: