Start reimplementing HTTP API with the new interface

This commit is contained in:
2016-01-04 16:47:55 +01:00
parent 503ff71f3c
commit 9e2d486b19
5 changed files with 121 additions and 413 deletions

View File

@@ -134,11 +134,11 @@ main(int argc, char *argv[])
json_builder_end_object(builder);
login_content = json_builder_get_root(builder);
matrix_http_api_login(MATRIX_API(api),
login_finished, loop,
"m.login.password",
login_content,
&err);
matrix_api_login(MATRIX_API(api),
login_finished, loop,
"m.login.password",
login_content,
&err);
if (err) {
g_warning("Error: %s", err->message);