Bug 560825 – Add size and alignment to typelib
authorOwen Taylor <otaylor@src.gnome.org>
Sun, 16 Nov 2008 21:15:54 +0000 (21:15 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sun, 16 Nov 2008 21:15:54 +0000 (21:15 +0000)
commitc68cef1ba60d2a7563cf8d191aa8c10453467ed7
treece1a0be4a4ff0044870989ebe03d430bf59998a7
parenta5d45df66370320ec2ae493383ba1388157182da
Bug 560825 – Add size and alignment to typelib

Include the size and alignment of structures and unions in the typelib,
and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.

* docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
to StructBlob and UnionBlob.

* girepository/ginfo.c girepository/girepository.h:
Add g_[struct|union]_get[size|alignment]().

* test/offsets/gen-gitestoffsets: Test overall structure size and alignment.

svn path=/trunk/; revision=930
ChangeLog
docs/typelib-format.txt
girepository/ginfo.c
girepository/girepository.h
girepository/girmodule.c
girepository/girnode.c
girepository/gtypelib.c
girepository/gtypelib.h
tests/offsets/gen-gitestoffsets