diff options
author | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2022-11-15 07:37:50 +0100 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2022-11-21 02:14:42 +0000 |
commit | 5112dff728bbc60ab3a807e647e12a88070a8f4b (patch) | |
tree | d14fe49e4a798aa4ad0402bed6cced4b642631ea /tests/gimarshallingtests.h | |
parent | 2861c026587b868bab4730a54345b27bbbd32fcf (diff) | |
download | gobject-introspection-5112dff728bbc60ab3a807e647e12a88070a8f4b.tar.gz |
GIMarshallingTests: Add tests for caller allocated fixed size arrays
Such kind of arrays can be easily be allocated as we know the size of
each array element.
See: https://gitlab.gnome.org/GNOME/gjs/-/merge_requests/806
Diffstat (limited to 'tests/gimarshallingtests.h')
-rw-r--r-- | tests/gimarshallingtests.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h index 2f4b259b..d4901987 100644 --- a/tests/gimarshallingtests.h +++ b/tests/gimarshallingtests.h @@ -679,6 +679,9 @@ _GI_TEST_EXTERN void gi_marshalling_tests_array_fixed_int_in (const gint *ints); _GI_TEST_EXTERN +void gi_marshalling_tests_array_fixed_caller_allocated_out (gint *ints); + +_GI_TEST_EXTERN void gi_marshalling_tests_array_fixed_short_in (const gshort *shorts); @@ -689,6 +692,9 @@ void gi_marshalling_tests_array_fixed_out (gint **ints); _GI_TEST_EXTERN void gi_marshalling_tests_array_fixed_out_struct (GIMarshallingTestsSimpleStruct **structs); +_GI_TEST_EXTERN +void gi_marshalling_tests_array_fixed_caller_allocated_struct_out (GIMarshallingTestsSimpleStruct *structs); + _GI_TEST_EXTERN void gi_marshalling_tests_array_fixed_inout (gint **ints); |