From ccb9e47bb86234f4a7f37048f0109ac9603b0e59 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 15 Jan 2016 20:03:17 +0100 Subject: [PATCH] Implement versions --- src/matrix-http-api.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/matrix-http-api.c b/src/matrix-http-api.c index 65cd86f..dcd1723 100644 --- a/src/matrix-http-api.c +++ b/src/matrix-http-api.c @@ -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;