From: Bastian Dehn Date: Tue, 23 Jan 2024 18:54:38 +0000 (+0100) Subject: underscore for intern method in client X-Git-Tag: v1.0.0^2~470 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=01d167038583fb4ad8ef96f301b7ad76f7826e84;p=sane-kds-s2000w-net.git underscore for intern method in client --- diff --git a/src/kds_s2000w_client.c b/src/kds_s2000w_client.c index 48f75f7..19dc06f 100644 --- a/src/kds_s2000w_client.c +++ b/src/kds_s2000w_client.c @@ -3,7 +3,7 @@ #include #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);