mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-26 19:08:57 +02:00
Add support for the (skip) annotation on parameters or return values
This was discussed in bug 649657. https://bugzilla.gnome.org/show_bug.cgi?id=649657 Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
@@ -482,6 +482,9 @@ write_callable_info (const gchar *namespace,
|
||||
if (g_callable_info_may_return_null (info))
|
||||
xml_printf (file, " allow-none=\"1\"");
|
||||
|
||||
if (g_callable_info_skip_return (info))
|
||||
xml_printf (file, " skip=\"1\"");
|
||||
|
||||
write_return_value_attributes (file, info);
|
||||
|
||||
write_type_info (namespace, type, file);
|
||||
@@ -545,6 +548,9 @@ write_callable_info (const gchar *namespace,
|
||||
if (g_arg_info_get_destroy (arg) >= 0)
|
||||
xml_printf (file, " destroy=\"%d\"", g_arg_info_get_destroy (arg));
|
||||
|
||||
if (g_arg_info_is_skip (arg))
|
||||
xml_printf (file, " skip=\"1\"");
|
||||
|
||||
write_attributes (file, (GIBaseInfo*) arg);
|
||||
|
||||
type = g_arg_info_get_type (arg);
|
||||
|
Reference in New Issue
Block a user