diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-06-29 00:14:39 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-06-29 00:14:39 +0800 |
commit | b065c82627d83d1b207985d78276eb80f0b7b266 (patch) | |
tree | 9b86751008a4dc875e917a9cb9f143991296ea7c /api.c | |
parent | 1dd9eb4d4d22c5559646ee0bf4d243107bf4154a (diff) | |
download | matrix-curl-b065c82627d83d1b207985d78276eb80f0b7b266.tar.xz |
device
Diffstat (limited to 'api.c')
-rw-r--r-- | api.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -6,6 +6,7 @@ #include "session.h" #include "curl_util.h" #include "util.h" +#include "device.h" /* logout: return 1 if success, 0 if failed */ int matrix_logout(matrix_session *sess) @@ -125,6 +126,8 @@ int main() json_object *joined_rooms = matrix_joined_rooms(sess); printf("%s\n", json_object_to_json_string(joined_rooms)); matrix_sync(sess); + puts("Diveces:"); + get_devices(sess); const char *roomid = matrix_resolv_alias(sess, "#hello:my.domain.name"); if (roomid == NULL) |