diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/generate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/generate.c b/tools/generate.c index 2292de01..b813b126 100644 --- a/tools/generate.c +++ b/tools/generate.c @@ -606,6 +606,7 @@ write_struct_info (const gchar *namespace, const gchar *type_init; gboolean deprecated; gboolean is_gtype_struct; + gboolean foreign; gint i; gint size; int n_elts; @@ -643,6 +644,10 @@ write_struct_info (const gchar *namespace, if (show_all && size >= 0) xml_printf (file, " size=\"%d\"", size); + foreign = g_struct_info_is_foreign (info); + if (foreign) + xml_printf (file, " foreign=\"1\""); + n_elts = g_struct_info_get_n_fields (info) + g_struct_info_get_n_methods (info); if (n_elts > 0) { |