From 01d167038583fb4ad8ef96f301b7ad76f7826e84 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Tue, 23 Jan 2024 19:54:38 +0100 Subject: [PATCH] underscore for intern method in client --- src/kds_s2000w_client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.39.5