From 84c0eb569de943e2e864173b16d95969594df7b5 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 15 Jan 2016 13:53:06 +0100 Subject: [PATCH] =?UTF-8?q?Remove=20`const`=20constraint=20from=20media=5F?= =?UTF-8?q?upload=E2=80=99s=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/matrix-api.c | 4 ++-- src/matrix-api.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/matrix-api.c b/src/matrix-api.c index ec494e8..9799e7b 100644 --- a/src/matrix-api.c +++ b/src/matrix-api.c @@ -390,7 +390,7 @@ matrix_api_media_thumbnail(MatrixAPI *api, * @callback * @content_type: (allow-none): the content type of the file being * uploaded - * @content: the content to be uploaded + * @content: (transfer full): the content to be uploaded * @error: return location for a #GError, or %NULL * * Upload some content to the content repository. @@ -400,7 +400,7 @@ matrix_api_media_upload(MatrixAPI *api, MatrixAPICallback callback, gpointer user_data, const gchar *content_type, - const GByteArray *content, + GByteArray *content, GError **error) { g_return_if_fail(MATRIX_IS_API(api)); diff --git a/src/matrix-api.h b/src/matrix-api.h index c37e296..a40c11c 100644 --- a/src/matrix-api.h +++ b/src/matrix-api.h @@ -82,7 +82,7 @@ struct _MatrixAPIInterface { MatrixAPICallback callback, gpointer user_data, const gchar *content_type, - const GByteArray *content, + GByteArray *content, GError **error); /* Presence */ @@ -499,7 +499,7 @@ void matrix_api_media_upload(MatrixAPI *api, MatrixAPICallback callback, gpointer user_data, const gchar *content_type, - const GByteArray *content, + GByteArray *content, GError **error); /* Presence */