Remove const constraint from send_message_event’s content

This commit is contained in:
Gergely Polonkai 2016-01-15 16:51:09 +01:00
parent f028ac838a
commit 11bd9002af
2 changed files with 4 additions and 4 deletions

View File

@ -1365,7 +1365,7 @@ matrix_api_redact_event(MatrixAPI *api,
* @txn_id: the transaction ID for this event. Clients should generate * @txn_id: the transaction ID for this event. Clients should generate
* a unique ID; it will be used by the server to ensure * a unique ID; it will be used by the server to ensure
* idempotency of requests * idempotency of requests
* @content: the content of the event as a #JsonNode * @content: (transfer full): the content of the event as a #JsonNode
* @error: return location for a #GError, or %NULL * @error: return location for a #GError, or %NULL
* *
* Send a message event to the room. * Send a message event to the room.
@ -1377,7 +1377,7 @@ matrix_api_send_message_event(MatrixAPI *api,
const gchar *room_id, const gchar *room_id,
const gchar *event_type, const gchar *event_type,
const gchar *txn_id, const gchar *txn_id,
const JsonNode *content, JsonNode *content,
GError **error) GError **error)
{ {
g_return_if_fail(MATRIX_IS_API(api)); g_return_if_fail(MATRIX_IS_API(api));

View File

@ -298,7 +298,7 @@ struct _MatrixAPIInterface {
const gchar *room_id, const gchar *room_id,
const gchar *event_type, const gchar *event_type,
const gchar *txn_id, const gchar *txn_id,
const JsonNode *content, JsonNode *content,
GError **error); GError **error);
void (*get_room_state)(MatrixAPI *api, void (*get_room_state)(MatrixAPI *api,
MatrixAPICallback callback, MatrixAPICallback callback,
@ -715,7 +715,7 @@ void matrix_api_send_message_event(MatrixAPI *api,
const gchar *room_id, const gchar *room_id,
const gchar *event_type, const gchar *event_type,
const gchar *txn_id, const gchar *txn_id,
const JsonNode *content, JsonNode *content,
GError **error); GError **error);
void matrix_api_get_room_state(MatrixAPI *api, void matrix_api_get_room_state(MatrixAPI *api,
MatrixAPICallback callback, MatrixAPICallback callback,