diff options
author | Christian Segundo | 2023-06-17 11:17:31 +0200 |
---|---|---|
committer | Christian Segundo | 2023-06-17 11:17:31 +0200 |
commit | b02b7f71978a172848322f0671d580e425634916 (patch) | |
tree | 057fba90b084b82a200ca76b424a9dd9fa204d2f /test.c | |
parent | c7412022c3c607c809f774db2459f9259ba95038 (diff) | |
download | zmission-b02b7f71978a172848322f0671d580e425634916.tar.gz |
one step closer
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -3,15 +3,17 @@ #include <stdio.h> int main(int argc, char **argv) { - struct ClientOptions opts; - opts.host = "192.168.0.2"; - opts.port = 9091; - opts.https = false; - opts.user = NULL; - opts.passowrd = NULL; + struct ClientOptions opts = { + .host = "192.168.0.2", + .port = 9091, + .https = false, + NULL, + NULL, + }; c_client client = c_client_init(opts); - c_torrent_get(client); + char *foo = c_torrent_get(client); + printf("%s\n", foo); c_client_deinit(client); return 0; } |