From c691d9f03b93baddcd1f4e979a97e8d72a27d893 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Sat, 20 Mar 2021 12:30:02 -0700 Subject: introspection: Remove 'caller-allocates' from POD types The (out caller-allocates) and (out callee-allocates) annotations are meant for structured or pointer types. Plain old data types are just regular out parameters and don't need the annotation about who allocates them. See: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2005 --- tests/gimarshallingtests.c | 4 ++-- tests/gimarshallingtests.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c index 46ac0fbf..fe265303 100644 --- a/tests/gimarshallingtests.c +++ b/tests/gimarshallingtests.c @@ -4391,7 +4391,7 @@ gi_marshalling_tests_object_method_int8_out (GIMarshallingTestsObject *self, gin /** * gi_marshalling_tests_object_method_int8_arg_and_out_caller: - * @out: (out caller-allocates): + * @out: (out): */ void gi_marshalling_tests_object_method_int8_arg_and_out_caller (GIMarshallingTestsObject *self, gint8 arg, gint8 *out) @@ -4411,7 +4411,7 @@ void /** * gi_marshalling_tests_object_method_str_arg_out_ret: - * @out: (out caller-allocates): + * @out: (out): * * Returns: (transfer none) */ diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h index c605c5a5..66f476d5 100644 --- a/tests/gimarshallingtests.h +++ b/tests/gimarshallingtests.h @@ -1363,7 +1363,7 @@ struct _GIMarshallingTestsObjectClass /** * GIMarshallingTestsObjectClass::method_int8_arg_and_out_caller: - * @out: (out caller-allocates): + * @out: (out): */ void (* method_int8_arg_and_out_caller) (GIMarshallingTestsObject *self, gint8 arg, gint8 *out); @@ -1375,7 +1375,7 @@ struct _GIMarshallingTestsObjectClass /** * GIMarshallingTestsObjectClass::method_str_arg_out_ret: - * @out: (out caller-allocates): + * @out: (out): * * Returns: (transfer none) */ -- cgit v1.2.1