Change set_account_data’s type param to event_type
It is for not to clash with some languages (like Python)
This commit is contained in:
parent
0369b387c1
commit
8ce974e195
@ -1995,8 +1995,8 @@ matrix_api_register_account(MatrixAPI *api,
|
||||
* ID
|
||||
* @room_id: (allow-none): the room to set account data for. If %NULL,
|
||||
* 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.
|
||||
* @event_type: the event type of the account data to set. Custom
|
||||
* types should be namespaced to avoid clashes
|
||||
* @content: (transfer full): the content of the account data
|
||||
* @error: return location for a #GError, or %NULL
|
||||
*
|
||||
@ -2010,7 +2010,7 @@ matrix_api_set_account_data(MatrixAPI *api,
|
||||
gpointer user_data,
|
||||
const gchar *user_id,
|
||||
const gchar *room_id,
|
||||
const gchar *type,
|
||||
const gchar *event_type,
|
||||
JsonNode *content,
|
||||
GError **error)
|
||||
{
|
||||
@ -2019,7 +2019,7 @@ matrix_api_set_account_data(MatrixAPI *api,
|
||||
MATRIX_API_GET_IFACE(api)
|
||||
->set_account_data(api,
|
||||
callback, user_data,
|
||||
user_id, room_id, type, content, error);
|
||||
user_id, room_id, event_type, content, error);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -434,7 +434,7 @@ struct _MatrixAPIInterface {
|
||||
gpointer user_data,
|
||||
const gchar *user_id,
|
||||
const gchar *room_id,
|
||||
const gchar *type,
|
||||
const gchar *event_type,
|
||||
JsonNode *content,
|
||||
GError **error);
|
||||
void (*get_room_tags)(MatrixAPI *api,
|
||||
@ -855,7 +855,7 @@ void matrix_api_set_account_data(MatrixAPI *api,
|
||||
gpointer user_data,
|
||||
const gchar *user_id,
|
||||
const gchar *room_id,
|
||||
const gchar *type,
|
||||
const gchar *event_type,
|
||||
JsonNode *content,
|
||||
GError **error);
|
||||
void matrix_api_get_room_tags(MatrixAPI *api,
|
||||
|
Loading…
Reference in New Issue
Block a user