We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@cImporting wlroots results in:
@cImport
error: C pointers cannot point to opaque types formats: [*c][*c]struct_wlr_drm_format,
Source of problem header
struct wlr_drm_format { uint32_t format; size_t len, cap; uint64_t modifiers[]; }; struct wlr_drm_format_set { size_t len, cap; struct wlr_drm_format **formats; };
pub const struct_wlr_drm_format = @Type(.Opaque); // drm_format_set.h:11:11: warning: struct demoted to opaque type - has variable length array pub const struct_wlr_drm_format_set = extern struct { len: usize, cap: usize, formats: [*c][*c]struct_wlr_drm_format, };
Is there any way of getting this working?
The text was updated successfully, but these errors were encountered:
Duplicate of #4686, related #4775.
Easiest workaround would be to manually translate that header.
Sorry, something went wrong.
No branches or pull requests
@cImport
ing wlroots results in:Source of problem header
Snippet of original header
Snippet of translate-c output
Is there any way of getting this working?
The text was updated successfully, but these errors were encountered: