diff options
Diffstat (limited to 'girepository/ginfo.c')
-rw-r--r-- | girepository/ginfo.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/girepository/ginfo.c b/girepository/ginfo.c index e3936179..724109fe 100644 --- a/girepository/ginfo.c +++ b/girepository/ginfo.c @@ -1392,6 +1392,15 @@ g_struct_info_get_alignment (GIStructInfo *info) return blob->alignment; } +gboolean +g_struct_info_is_foreign (GIStructInfo *info) +{ + GIRealInfo *rinfo = (GIRealInfo *)info; + StructBlob *blob = (StructBlob *)&rinfo->typelib->data[rinfo->offset]; + + return blob->foreign; +} + /** * g_struct_info_is_gtype_struct: * @info: GIStructInfo |