]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
underscore for intern method in client
authorBastian Dehn <hhaalo@arcor.de>
Tue, 23 Jan 2024 18:54:38 +0000 (19:54 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 23 Jan 2024 18:54:38 +0000 (19:54 +0100)
src/kds_s2000w_client.c

index 48f75f78679893b39703a76565cbf3ed54c88352..19dc06f2eff1f05c051878e2cc020625a88418a7 100644 (file)
@@ -3,7 +3,7 @@
 #include <curl/curl.h>
 #include "kds_s2000w_client.h"
 
-size_t kds_s2000w_client_callback(char *ptr, size_t size, size_t nmemb, void *userdata)
+size_t _kds_s2000w_client_callback(char *ptr, size_t size, size_t nmemb, void *userdata)
 {
        response* data = (response*) userdata;
        size_t fullsize = size * nmemb;
@@ -55,7 +55,7 @@ int kds_s2000w_client_open_session(const char* username, response* response)
        curl_easy_setopt(curl, CURLOPT_URL, url);
        curl_easy_setopt(curl, CURLOPT_POST, 1L);
        curl_easy_setopt(curl, CURLOPT_POSTFIELDS, body);
-       curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, kds_s2000w_client_callback);
+       curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, _kds_s2000w_client_callback);
        curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void*) response);
        CURLcode result = curl_easy_perform(curl);
        curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response->code);
@@ -102,7 +102,7 @@ int kds_s2000w_client_get_all_options(response* response)
 
        curl_easy_setopt(curl, CURLOPT_URL, url);
        curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L);
-       curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, kds_s2000w_client_callback);
+       curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, _kds_s2000w_client_callback);
        curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void*) response);
        CURLcode result = curl_easy_perform(curl);
        curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response->code);
@@ -131,7 +131,7 @@ int kds_s2000w_client_get_option(int64_t sessionid, response* response)
 
        curl_easy_setopt(curl, CURLOPT_URL, url);
        curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L);
-       curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, kds_s2000w_client_callback);
+       curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, _kds_s2000w_client_callback);
        curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void*) response);
        CURLcode result = curl_easy_perform(curl);
        curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response->code);