Include bitfield information in typelib
Submitted by Owen Taylor
Link to original bug (#560280)
Description
We should compute bitfield positions and store them in the typelib.
FieldBlob needs to be extended for this, since it's missing the position of the bits within the bitfield. (Possibly an incompatible change, some shifting around of:
guint readable : 1; guint writable : 1; guint reserved : 6; guint8 bits;
seems indicated. Assuming we don't care about > 32-bit fields, then 5 bits are needed for 'bits' and 5 for the position.)
Computation is a little challenging because bitfields differ significantly between differnet ABIs (and on Windows you have different bitfield handling in the Microsoft and GCC ABIs...) Will take a bit of study.