From 40d14b8f3350beb546e9748d7ee194ef972a1838 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Tue, 31 Dec 2024 11:42:34 +0100 Subject: [PATCH] order methods init and free client --- src/kds_s2000w_client.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/kds_s2000w_client.c b/src/kds_s2000w_client.c index f3dbe00..950bd2f 100644 --- a/src/kds_s2000w_client.c +++ b/src/kds_s2000w_client.c @@ -61,21 +61,6 @@ response* kds_s2000w_client_response_init() return resp; } -void kds_s2000w_client_init() -{ - debug_printf(ALL, "kds_s2000w_client_init"); - - curl = curl_easy_init(); -} - -void kds_s2000w_client_free() -{ - debug_printf(ALL, "kds_s2000w_client_free"); - - curl_easy_cleanup(curl); - curl = NULL; -} - void kds_s2000w_client_response_free(response* response) { debug_printf(ALL, "kds_s2000w_client_response_free"); @@ -91,6 +76,21 @@ void kds_s2000w_client_response_free(response* response) response = NULL; } +void kds_s2000w_client_init() +{ + debug_printf(ALL, "kds_s2000w_client_init"); + + curl = curl_easy_init(); +} + +void kds_s2000w_client_free() +{ + debug_printf(ALL, "kds_s2000w_client_free"); + + curl_easy_cleanup(curl); + curl = NULL; +} + int kds_s2000w_client_open_session(response* response) { debug_printf(ALL, "kds_s2000w_client_open_session"); -- 2.39.5