From: Bastian Dehn Date: Tue, 31 Dec 2024 10:42:34 +0000 (+0100) Subject: order methods init and free client X-Git-Tag: v1.0.20^2~3^2~3 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=40d14b8f3350beb546e9748d7ee194ef972a1838;p=sane-kds-s2000w-net.git order methods init and free client --- 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");