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,