]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
order methods init and free client
authorBastian Dehn <hhaalo@arcor.de>
Tue, 31 Dec 2024 10:42:34 +0000 (11:42 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 31 Dec 2024 10:42:34 +0000 (11:42 +0100)
src/kds_s2000w_client.c

index f3dbe003e8e9923e74dd9cef1813594f81715a05..950bd2f115cb7c473d2e365adb21380b94cad485 100644 (file)
@@ -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");