mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 16:08:43 +02:00
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
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user