From 0369b387c1becbc6ca6251f1d1a689102aa5312c Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 16 Jan 2016 14:37:57 +0100 Subject: [PATCH] =?UTF-8?q?Remove=20`const`=20constraint=20from=20set=5Fac?= =?UTF-8?q?count=5Fdata=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 017aabe..f7f89f6 100644 --- a/src/matrix-api.c +++ b/src/matrix-api.c @@ -1997,7 +1997,7 @@ matrix_api_register_account(MatrixAPI *api, * the account data will be set globally * @type: the event type of the account data to set. Custom types * should be namespaced to avoid clashes. - * @content: the content of the account data + * @content: (transfer full): the content of the account data * @error: return location for a #GError, or %NULL * * Set some account data for the client. This config is only visible @@ -2011,7 +2011,7 @@ matrix_api_set_account_data(MatrixAPI *api, const gchar *user_id, const gchar *room_id, const gchar *type, - const JsonNode *content, + JsonNode *content, GError **error) { g_return_if_fail(MATRIX_IS_API(api)); diff --git a/src/matrix-api.h b/src/matrix-api.h index d30cfc9..ae50c3e 100644 --- a/src/matrix-api.h +++ b/src/matrix-api.h @@ -435,7 +435,7 @@ struct _MatrixAPIInterface { const gchar *user_id, const gchar *room_id, const gchar *type, - const JsonNode *content, + JsonNode *content, GError **error); void (*get_room_tags)(MatrixAPI *api, MatrixAPICallback callback, @@ -856,7 +856,7 @@ void matrix_api_set_account_data(MatrixAPI *api, const gchar *user_id, const gchar *room_id, const gchar *type, - const JsonNode *content, + JsonNode *content, GError **error); void matrix_api_get_room_tags(MatrixAPI *api, MatrixAPICallback callback,