diff options
author | Owen Taylor <otaylor@src.gnome.org> | 2008-11-11 05:10:36 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2008-11-11 05:10:36 +0000 |
commit | 7e1e368b9f09835a4c65c3e8ff7780523893180d (patch) | |
tree | 549f6f46dec594ee3429cda80d66abbbda85906b /docs | |
parent | 570088cd5548cdc3e13b85b5e900457c3b5a94ea (diff) | |
download | gobject-introspection-7e1e368b9f09835a4c65c3e8ff7780523893180d.tar.gz |
Bug 560252 - Compute field offsets before writing typelib
girnode.h: Store the total size and alignment for
GIrNodeStruct/Boxed/Union.
giroffset.c: New file implementing computation of structure
field offsets.
girnode.c: Compute structure field offsets before writing types
into the typelib.
docs/typelib-format.txt: Document that a field offset of 0xFFFF
means "unknown". Also fix description of the discriminator_offset
field for unions.
svn path=/trunk/; revision=876
Diffstat (limited to 'docs')
-rw-r--r-- | docs/typelib-format.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/typelib-format.txt b/docs/typelib-format.txt index 0c813ba8..80b29c9b 100644 --- a/docs/typelib-format.txt +++ b/docs/typelib-format.txt @@ -735,7 +735,8 @@ signal: interface to which this virtual function belongs. struct_offset: - The offset of the function pointer in the class struct. + The offset of the function pointer in the class struct. The value + 0xFFFF indicates that the struct offset is unknown. signature: Offset of the SignatureBlob describing the parameter types and the @@ -767,7 +768,8 @@ bits: If this field is part of a bitfield, the number of bits which it uses, otherwise 0. struct_offset: - The offset of the field in the struct. + The offset of the field in the struct. The value 0xFFFF indicates + that the struct offset is unknown. type: The type of the field. @@ -1071,8 +1073,10 @@ gtype: For types which are registered with GType, contains the n_fields: Length of the arrays discriminator_offset: - Offset from the beginning of the blob where the - discriminator of a discriminated union is located + Offset from the beginning of the union where the + discriminator of a discriminated union is located. + The value 0xFFFF indicates that the discriminator offset + is unknown. discriminator_type: Type of the discriminator |