Remove const constraint from send_room_event’s content

This commit is contained in:
Gergely Polonkai 2016-01-15 17:08:27 +01:00
parent 5f66269262
commit 668c782df7
2 changed files with 4 additions and 4 deletions

View File

@ -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));

View File

@ -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,