#include <stdlib.h>
#include <curl/curl.h>
#include "kds_s2000w_client.h"
+#include "kds_s2000w_debug.h"
size_t _kds_s2000w_client_callback(char *ptr, size_t size, size_t nmemb, void *userdata)
{
+ debug_printf(ALL, "kds_s2000w_client_callback");
response* data = (response*) userdata;
size_t fullsize = size * nmemb;
response* kds_s2000w_client_response_init()
{
+ debug_printf(ALL, "kds_s2000w_client_response_init");
response* resp;
resp = malloc(sizeof(response));
void kds_s2000w_client_response_free(response* response)
{
+ debug_printf(ALL, "kds_s2000w_client_response_free");
if (response == NULL)
return;
int kds_s2000w_client_open_session(const char* username, response* response)
{
+ debug_printf(ALL, "kds_s2000w_client_open_session");
CURL *curl = curl_easy_init();
if(!curl)
return CURLE_FAILED_INIT;
void kds_s2000w_client_close_session(int64_t sessionid)
{
+ debug_printf(ALL, "kds_s2000w_client_close_session");
CURL *curl = curl_easy_init();
if(!curl)
return;
int kds_s2000w_client_status_session(int64_t sessionid, response* response)
{
+ debug_printf(ALL, "kds_s2000w_client_status_session");
CURL *curl = curl_easy_init();
if(!curl)
return CURLE_FAILED_INIT;
int kds_s2000w_client_start_scan(int64_t sessionid, response* response)
{
+ debug_printf(ALL, "kds_s2000w_client_start_scan");
CURL *curl = curl_easy_init();
if(!curl)
return CURLE_FAILED_INIT;
int kds_s2000w_client_stop_scan(int64_t sessionid, response* response)
{
+ debug_printf(ALL, "kds_s2000w_client_stop_scan");
CURL *curl = curl_easy_init();
if(!curl)
return CURLE_FAILED_INIT;
int kds_s2000w_client_get_metadata(int64_t sessionid, int img_number, response* response)
{
+ debug_printf(ALL, "kds_s2000w_client_get_metadata");
CURL *curl = curl_easy_init();
if(!curl)
return CURLE_FAILED_INIT;
int kds_s2000w_client_get_image(int64_t sessionid, int img_number, response* response)
{
+ debug_printf(ALL, "kds_s2000w_client_get_image");
CURL *curl = curl_easy_init();
if(!curl)
return CURLE_FAILED_INIT;
int kds_s2000w_client_delete_image(int64_t sessionid, int img_number, response* response)
{
+ debug_printf(ALL, "kds_s2000w_client_delete_image");
CURL *curl = curl_easy_init();
if(!curl)
return CURLE_FAILED_INIT;
int kds_s2000w_client_get_capabilities(response* response)
{
+ debug_printf(ALL, "kds_s2000w_client_get_capabilities");
CURL *curl = curl_easy_init();
if(!curl)
return CURLE_FAILED_INIT;
int kds_s2000w_client_get_option(int64_t sessionid, response* response)
{
+ debug_printf(ALL, "kds_s2000w_client_get_option");
CURL *curl = curl_easy_init();
if(!curl)
return CURLE_FAILED_INIT;
int kds_s2000w_client_set_option(int64_t sessionid, response* response)
{
+ debug_printf(ALL, "kds_s2000w_client_set_option");
CURL *curl = curl_easy_init();
if(!curl)
return CURLE_FAILED_INIT;