This is quite a normal and sensible practice. But try not to expose the struct layout in header files, so that you have some flexibility in how it’s implemented and manage your dependencies better.
See Opaque pointer for more details.
This is quite a normal and sensible practice. But try not to expose the struct layout in header files, so that you have some flexibility in how it’s implemented and manage your dependencies better.
See Opaque pointer for more details.