summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorChristian Segundo2023-06-15 23:27:24 +0200
committerChristian Segundo2023-06-15 23:27:24 +0200
commit831740fcacfe67b8124436460afa77af15493f93 (patch)
treeb5303ca5833c4c551d636411988808cfb023b0f6 /test.c
parentdb5d7914d82d69021cf303e0ab02b46e0730bf48 (diff)
downloadzmission-831740fcacfe67b8124436460afa77af15493f93.tar.gz
one step closer
Diffstat (limited to 'test.c')
-rw-r--r--test.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/test.c b/test.c
index 13a2af5..9766e8f 100644
--- a/test.c
+++ b/test.c
@@ -3,11 +3,15 @@
#include <stdio.h>
int main(int argc, char **argv) {
- struct ClientOptions opts;
- opts.host = "192.168.0.2";
- opts.port = 9091;
+ struct ClientOptions opts;
+ opts.host = "192.168.0.2";
+ opts.port = 9091;
+ opts.https = false;
+ opts.user = NULL;
+ opts.passowrd = NULL;
- c_client client = c_client_init(opts);
- c_client_deinit(client);
- return 0;
+ c_client client = c_client_init(opts);
+ c_torrent_get(client);
+ c_client_deinit(client);
+ return 0;
}