From 668c782df764ac754c19f24f025abdf3a6836a6c Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 15 Jan 2016 17:08:27 +0100 Subject: [PATCH] =?UTF-8?q?Remove=20`const`=20constraint=20from=20send=5Fr?= =?UTF-8?q?oom=5Fevent=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 1e1d85a..244db7f 100644 --- a/src/matrix-api.c +++ b/src/matrix-api.c @@ -1435,7 +1435,7 @@ matrix_api_get_room_state(MatrixAPI *api, * @event_type: the type of state to look up * @state_key: (allow-none): the key of the state to look up. If * @event_type is %NULL, this parameter is ignored - * @content: the content of the state event + * @content: (transfer full): the content of the state event * @error: return location for a #GError, or %NULL * * Send a state event to the room. These events will be overwritten if @@ -1453,7 +1453,7 @@ matrix_api_send_room_event(MatrixAPI *api, const gchar *room_id, const gchar *event_type, const gchar *state_key, - 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 51f5012..1e16530 100644 --- a/src/matrix-api.h +++ b/src/matrix-api.h @@ -313,7 +313,7 @@ struct _MatrixAPIInterface { const gchar *room_id, const gchar *event_type, const gchar *state_key, - const JsonNode *content, + JsonNode *content, GError **error); void (*notify_room_typing)(MatrixAPI *api, MatrixAPICallback callback, @@ -730,7 +730,7 @@ void matrix_api_send_room_event(MatrixAPI *api, const gchar *room_id, const gchar *event_type, const gchar *state_key, - const JsonNode *content, + JsonNode *content, GError **error); void matrix_api_notify_room_typing(MatrixAPI *api, MatrixAPICallback callback,