From bf266f4116f914dbb82f0cf71f088511c4c26aa4 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Mon, 14 Apr 2025 15:32:18 +0300 Subject: [PATCH] gtlsconnection: Fix annotation The array is allocated by the *caller*, not the callee, and then filled by the callee during the call. Signed-off-by: Sergey Bugaev --- gio/gdtlsconnection.c | 2 +- gio/gtlsconnection.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/gdtlsconnection.c b/gio/gdtlsconnection.c index d7d9d4d09..f10c82451 100644 --- a/gio/gdtlsconnection.c +++ b/gio/gdtlsconnection.c @@ -1113,7 +1113,7 @@ g_dtls_connection_get_negotiated_protocol (GDtlsConnection *conn) * g_dtls_connection_get_channel_binding_data: * @conn: a #GDtlsConnection * @type: #GTlsChannelBindingType type of data to fetch - * @data: (out callee-allocates)(optional)(transfer none): #GByteArray is + * @data: (out caller-allocates) (optional) (transfer none): #GByteArray is * filled with the binding data, or %NULL * @error: a #GError pointer, or %NULL * diff --git a/gio/gtlsconnection.c b/gio/gtlsconnection.c index 775e9d594..b11f452d4 100644 --- a/gio/gtlsconnection.c +++ b/gio/gtlsconnection.c @@ -880,7 +880,7 @@ G_DEFINE_QUARK (g-tls-channel-binding-error-quark, g_tls_channel_binding_error) * g_tls_connection_get_channel_binding_data: * @conn: a #GTlsConnection * @type: #GTlsChannelBindingType type of data to fetch - * @data: (out callee-allocates)(optional)(transfer none): #GByteArray is + * @data: (out caller-allocates) (optional) (transfer none): #GByteArray is * filled with the binding data, or %NULL * @error: a #GError pointer, or %NULL *