Remove const
constraint from send_message_event’s content
This commit is contained in:
parent
f028ac838a
commit
11bd9002af
@ -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));
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user