Interface fields
It is not clear whether support for interface fields is intended in future. On the one hand, it looks some support is expeted:
- The description of GIInterfaceInfo says "A GInterface has methods, fields, ...".
- In a GIR file, an interface element may contain field elements according to the RNG schema.
On the other hand, there is no support currently:
-
An InterfaceBlob has no fields.
-
GIInterfaceInfo functions do not provide field information (and they can't be implemented given the previous observation).
-
There don't appear to be any examples of interfaces using fields in any GIR file that I have - the following command produces only zeros:
xmlstarlet sel -t -v "count(//_:interface/_:field)" /usr/share/gir-1.0/*.gir
I'm not sure how GObject supports interface fields (and surely a property would be used in practice).