mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
Merge branch 'ebassi/pointer-types' into 'main'
Dump pointer types in the introspection blob See merge request GNOME/glib!4098
This commit is contained in:
commit
2b7678b41b
@ -447,6 +447,13 @@ dump_boxed_type (GType type, const char *symbol, FILE *out)
|
||||
g_type_name (type), symbol);
|
||||
}
|
||||
|
||||
static void
|
||||
dump_pointer_type (GType type, const char *symbol, FILE *out)
|
||||
{
|
||||
escaped_printf (out, " <pointer name=\"%s\" get-type=\"%s\"/>\n",
|
||||
g_type_name (type), symbol);
|
||||
}
|
||||
|
||||
static void
|
||||
dump_flags_type (GType type, const char *symbol, FILE *out)
|
||||
{
|
||||
@ -562,7 +569,7 @@ dump_type (GType type, const char *symbol, FILE *out)
|
||||
dump_enum_type (type, symbol, out);
|
||||
break;
|
||||
case G_TYPE_POINTER:
|
||||
/* GValue, etc. Just skip them. */
|
||||
dump_pointer_type (type, symbol, out);
|
||||
break;
|
||||
default:
|
||||
dump_fundamental_type (type, symbol, out);
|
||||
|
Loading…
Reference in New Issue
Block a user