> On 12 Jul 2024, at 11:53, Danilo Krummrich <d...@redhat.com> wrote: > > You could also just define those structures in a C header directly and use it > from Rust, can't you? > Sure, I am open to any approach here. Although this looks a bit reversed to me. i.e.: why should I declare these structs in a separate language and file, and then use them in Rust through bindgen? Sounds clunky. Right now, they are declared right next to where they are used in the code, i.e.: in the same Rust file. And so long as they’re #[repr(C)] we know that an equivalent C version can generated by cbindgen.
- [RFC PATCH] drm: panthor: add dev_coredumpv support Daniel Almeida
- Re: [RFC PATCH] drm: panthor: add dev_coredumpv supp... Danilo Krummrich
- Re: [RFC PATCH] drm: panthor: add dev_coredumpv ... Daniel Vetter
- Re: [RFC PATCH] drm: panthor: add dev_coredu... Daniel Almeida
- Re: [RFC PATCH] drm: panthor: add dev_co... Daniel Vetter
- Re: [RFC PATCH] drm: panthor: add dev_coredumpv supp... Liviu Dudau
- Re: [RFC PATCH] drm: panthor: add dev_coredumpv ... Daniel Almeida
- Re: [RFC PATCH] drm: panthor: add dev_coredumpv supp... Steven Price
- Re: [RFC PATCH] drm: panthor: add dev_coredumpv ... Daniel Almeida
- Re: [RFC PATCH] drm: panthor: add dev_coredu... Danilo Krummrich
- Re: [RFC PATCH] drm: panthor: add dev_co... Daniel Almeida
- Re: [RFC PATCH] drm: panthor: add d... Danilo Krummrich
- Re: [RFC PATCH] drm: panthor: a... Dave Airlie
- Re: [RFC PATCH] drm: pantho... Daniel Almeida
- Re: [RFC PATCH] drm: pantho... Miguel Ojeda
- Re: [RFC PATCH] drm: panthor: add dev_coredu... Steven Price
- Re: [RFC PATCH] drm: panthor: add dev_co... Alice Ryhl
- Re: [RFC PATCH] drm: panthor: add dev_co... Boris Brezillon
- Re: [RFC PATCH] drm: panthor: add d... Daniel Almeida
- Re: [RFC PATCH] drm: panthor: add d... Steven Price
- Re: [RFC PATCH] drm: panthor: a... Boris Brezillon