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:
Gergely Polonkai 2016-01-16 15:06:22 +01:00
parent 0369b387c1
commit 8ce974e195
2 changed files with 6 additions and 6 deletions

View File

@ -1995,8 +1995,8 @@ matrix_api_register_account(MatrixAPI *api,
* ID * ID
* @room_id: (allow-none): the room to set account data for. If %NULL, * @room_id: (allow-none): the room to set account data for. If %NULL,
* the account data will be set globally * the account data will be set globally
* @type: the event type of the account data to set. Custom types * @event_type: the event type of the account data to set. Custom
* should be namespaced to avoid clashes. * types should be namespaced to avoid clashes
* @content: (transfer full): the content of the account data * @content: (transfer full): the content of the account data
* @error: return location for a #GError, or %NULL * @error: return location for a #GError, or %NULL
* *
@ -2010,7 +2010,7 @@ matrix_api_set_account_data(MatrixAPI *api,
gpointer user_data, gpointer user_data,
const gchar *user_id, const gchar *user_id,
const gchar *room_id, const gchar *room_id,
const gchar *type, const gchar *event_type,
JsonNode *content, JsonNode *content,
GError **error) GError **error)
{ {
@ -2019,7 +2019,7 @@ matrix_api_set_account_data(MatrixAPI *api,
MATRIX_API_GET_IFACE(api) MATRIX_API_GET_IFACE(api)
->set_account_data(api, ->set_account_data(api,
callback, user_data, callback, user_data,
user_id, room_id, type, content, error); user_id, room_id, event_type, content, error);
} }
/** /**

View File

@ -434,7 +434,7 @@ struct _MatrixAPIInterface {
gpointer user_data, gpointer user_data,
const gchar *user_id, const gchar *user_id,
const gchar *room_id, const gchar *room_id,
const gchar *type, const gchar *event_type,
JsonNode *content, JsonNode *content,
GError **error); GError **error);
void (*get_room_tags)(MatrixAPI *api, void (*get_room_tags)(MatrixAPI *api,
@ -855,7 +855,7 @@ void matrix_api_set_account_data(MatrixAPI *api,
gpointer user_data, gpointer user_data,
const gchar *user_id, const gchar *user_id,
const gchar *room_id, const gchar *room_id,
const gchar *type, const gchar *event_type,
JsonNode *content, JsonNode *content,
GError **error); GError **error);
void matrix_api_get_room_tags(MatrixAPI *api, void matrix_api_get_room_tags(MatrixAPI *api,