Field Info

G-Golf Field Info low level API.
GIFieldInfo — Struct representing a struct or union field.

Procedures

g-field-info-get-flags
g-field-info-get-offset
g-field-info-get-type

Struct Hierarchy

GIBaseInfo
  +— GIFieldInfo

Description

A GIFieldInfo struct represents a field of a struct (see Struct Info), union (see GIUnionInfo) or an object (see Object Info). The GIFieldInfo is fetched by calling g-struct-info-get-field, g-union-info-get-field or g-object-info-get-field. A field has a size, type and a struct offset asssociated and a set of flags, which are currently readable or writable.

Procedures

Note: in this section, unless otherwise specified, the info argument is [must be] a pointer to a GIFieldInfo.

Procedure: g-field-info-get-flags info

Returns a (possibly empty) list.

Obtains and returns the flags for info, which currently are readable or writable.

Procedure: g-field-info-get-offset info

Returns an unsigned integer.

Obtains and returns the offset in bytes for info, the field member, this is relative to the beginning of the struct or union.

Procedure: g-field-info-get-type info

Returns a pointer.

Obtains and returns the GITypeInfo for info.

The GITypeInfo must be freed by calling g-base-info-unref when done.