diff options
author | Owen Taylor <otaylor@src.gnome.org> | 2008-11-16 21:15:54 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2008-11-16 21:15:54 +0000 |
commit | c68cef1ba60d2a7563cf8d191aa8c10453467ed7 (patch) | |
tree | ce1a0be4a4ff0044870989ebe03d430bf59998a7 /girepository/girepository.h | |
parent | a5d45df66370320ec2ae493383ba1388157182da (diff) | |
download | gobject-introspection-c68cef1ba60d2a7563cf8d191aa8c10453467ed7.tar.gz |
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
Diffstat (limited to 'girepository/girepository.h')
-rw-r--r-- | girepository/girepository.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/girepository/girepository.h b/girepository/girepository.h index fc5768c5..a671cb5c 100644 --- a/girepository/girepository.h +++ b/girepository/girepository.h @@ -377,6 +377,8 @@ GIConstantInfo * g_union_info_get_discriminator (GIUnionInfo *info, gint n); GIFunctionInfo * g_union_info_find_method (GIUnionInfo *info, const gchar *name); +gsize g_union_info_get_size (GIUnionInfo *info); +gsize g_union_info_get_alignment (GIUnionInfo *info); /* GIStructInfo */ @@ -388,6 +390,8 @@ GIFunctionInfo * g_struct_info_get_method (GIStructInfo *info, gint n); GIFunctionInfo * g_struct_info_find_method (GIStructInfo *info, const gchar *name); +gsize g_struct_info_get_size (GIStructInfo *info); +gsize g_struct_info_get_alignment (GIStructInfo *info); /* GIRegisteredTypeInfo */ |