From b02b7f71978a172848322f0671d580e425634916 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sat, 17 Jun 2023 11:17:31 +0200 Subject: one step closer --- test.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'test.c') diff --git a/test.c b/test.c index 9766e8f..305fa2b 100644 --- a/test.c +++ b/test.c @@ -3,15 +3,17 @@ #include 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; } -- cgit v1.2.3