From d242bad64e540fa186c6e11be3108a5fde7ca6bd Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 31 May 2024 18:40:21 +0100 Subject: [PATCH] Dump pointer types in the introspection blob Instead of skipping types that inherit from G_TYPE_POINTER, add a new ancillary element into the raw dump that gets processed by g-ir-scanner. See: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/470 --- girepository/gdump.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/girepository/gdump.c b/girepository/gdump.c index 2388626d8..d04f2fe76 100644 --- a/girepository/gdump.c +++ b/girepository/gdump.c @@ -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, " \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);