Implement versions

This commit is contained in:
Gergely Polonkai 2016-01-15 20:03:17 +01:00
parent 83e7152c87
commit ccb9e47bb8
1 changed files with 14 additions and 1 deletions

View File

@ -2300,6 +2300,19 @@ i_get_3pids(MatrixAPI *api,
FALSE, error);
}
static void
i_versions(MatrixAPI *api,
MatrixAPICallback callback,
gpointer user_data,
GError **error)
{
_send(MATRIX_HTTP_API(api),
callback, user_data,
CALL_API,
"GET", "versions", NULL, NULL, NULL, NULL,
FALSE, error);
}
static void
matrix_http_api_matrix_api_init(MatrixAPIInterface *iface)
{
@ -2370,7 +2383,7 @@ matrix_http_api_matrix_api_init(MatrixAPIInterface *iface)
/* Server administration */
iface->whois = i_whois;
iface->versions = NULL;
iface->versions = i_versions;
/* Session management */
iface->login = i_login;