CoglBufferMapHint enum members have wrong introspection names
Cogl-2.0.gir
contains this section (parts omitted for clarity):
<bitfield name="BufferMapHint" version="1.4" stability="Unstable" c:type="CoglBufferMapHint">
<member name="" value="1" c:identifier="COGL_BUFFER_MAP_HINT_DISCARD"></member>
<member name="_range" value="2" c:identifier="COGL_BUFFER_MAP_HINT_DISCARD_RANGE"></member>
</bitfield>
In PyGObject, for example, this causes the Cogl.BufferMapHint members to be named _
and _RANGE
instead of the intended DISCARD
and DISCARD_RANGE
. (CoglBufferMapHint is not documented in the C documentation; I don't know if it's due to this issue.)
The source code attempts to set the prefix using /*< prefix=COGL_BUFFER_MAP_HINT >*/
. I have no idea whether that annotation is correct (I can't find it in the GI documentation), but it doesn't seem to work.