I have been looking at patches that touch typedefs.h and wondering: why do we make typedefs.h necessary at all? Why do we always add typedefs for every struct and union type in QEMU?
Why do we prefer to write this: ----- qemu/typedefs.h: typedef struct SomeType SomeType; ---------------------- ----- qemu/somecode.h: #include <qemu/typedefs.h> int some_function(SomeType *a); ---------------------- ...instead of simply writing this:? ----- qemu/somecode.h: struct SomeType; int some_function(struct SomeType *a); ---------------------- Is the maintenance burden of typedefs.h worth it? -- Eduardo