Add test_array_int_inout in Everything.
</parameter>
</parameters>
</function>
+ <function name="test_array_int_inout" c:identifier="test_array_int_inout">
+ <return-value transfer-ownership="none">
+ <type name="none" c:type="void"/>
+ </return-value>
+ <parameters>
+ <parameter name="n_ints"
+ direction="inout"
+ transfer-ownership="full"
+ doc="the length of @ints">
+ <type name="int" c:type="int*"/>
+ </parameter>
+ <parameter name="ints"
+ direction="inout"
+ transfer-ownership="full"
+ doc="a list of integers whose items will be increased by 1, except the first that will be dropped">
+ <array length="0" c:type="int**">
+ <type name="int"/>
+ </array>
+ </parameter>
+ </parameters>
+ </function>
<function name="test_array_int_none_out"
c:identifier="test_array_int_none_out">
<return-value transfer-ownership="none"
(*ints)[i] = (*ints)[i-1] + 1;
}
+/**
+ * test_array_int_inout:
+ * @n_ints: (inout): the length of @ints
+ * @ints: (inout) (array length=n_ints) (transfer full): a list of integers whose items will be increased by 1, except the first that will be dropped
+ */
+void
+test_array_int_inout (int *n_ints, int **ints)
+{
+ int i;
+
+ for (i = 1; i < *n_ints; i++) {
+ (*ints)[i-1] = (*ints)[i] + 1;
+ }
+
+ if (0 < *n_ints) {
+ *n_ints -= 1;
+ }
+ *ints = g_realloc(*ints, sizeof(**ints) * *n_ints);
+}
+
/**
* test_array_gint8_in:
* @n_ints:
gboolean test_strv_in (char **arr);
int test_array_int_in (int n_ints, int *ints);
void test_array_int_out (int *n_ints, int **ints);
+void test_array_int_inout (int *n_ints, int **ints);
int test_array_gint8_in (int n_ints, gint8 *ints);
int test_array_gint16_in (int n_ints, gint16 *ints);
gint32 test_array_gint32_in (int n_ints, gint32 *ints);