Update register_account() according to specification

This commit is contained in:
Gergely Polonkai 2016-01-16 14:19:32 +01:00
parent 6d9b13cd63
commit 5b1ea70b48
2 changed files with 6 additions and 2 deletions

View File

@ -1955,6 +1955,7 @@ matrix_api_set_display_name(MatrixAPI *api,
* finished * finished
* @user_data: (closure): user data to pass to the callback function * @user_data: (closure): user data to pass to the callback function
* @callback * @callback
* @account_kind: the type of account to register
* @bind_email: if %TRUE, the server binds the e-mail used for * @bind_email: if %TRUE, the server binds the e-mail used for
* authentication to the Matrix ID with the ID server * authentication to the Matrix ID with the ID server
* @username: (allow-none): the local part of the desired Matrix * @username: (allow-none): the local part of the desired Matrix
@ -1969,6 +1970,7 @@ void
matrix_api_register_account(MatrixAPI *api, matrix_api_register_account(MatrixAPI *api,
MatrixAPICallback callback, MatrixAPICallback callback,
gpointer user_data, gpointer user_data,
MatrixAPIAccountKind account_kind,
gboolean bind_email, gboolean bind_email,
const gchar *username, const gchar *username,
const gchar *password, const gchar *password,
@ -1977,8 +1979,8 @@ matrix_api_register_account(MatrixAPI *api,
g_return_if_fail(MATRIX_IS_API(api)); g_return_if_fail(MATRIX_IS_API(api));
MATRIX_API_GET_IFACE(api) MATRIX_API_GET_IFACE(api)
->register_account(api, callback, user_data, bind_email, ->register_account(api, callback, user_data, account_kind,
username, password, error); bind_email, username, password, error);
} }
/** /**

View File

@ -424,6 +424,7 @@ struct _MatrixAPIInterface {
void (*register_account)(MatrixAPI *api, void (*register_account)(MatrixAPI *api,
MatrixAPICallback callback, MatrixAPICallback callback,
gpointer user_data, gpointer user_data,
MatrixAPIAccountKind account_kind,
gboolean bind_email, gboolean bind_email,
const gchar *username, const gchar *username,
const gchar *password, const gchar *password,
@ -844,6 +845,7 @@ void matrix_api_set_display_name(MatrixAPI *api,
void matrix_api_register_account(MatrixAPI *api, void matrix_api_register_account(MatrixAPI *api,
MatrixAPICallback callback, MatrixAPICallback callback,
gpointer user_data, gpointer user_data,
MatrixAPIAccountKind account_kind,
gboolean bind_email, gboolean bind_email,
const gchar *username, const gchar *username,
const gchar *password, const gchar *password,