"src/kds_s2000w_handler.c")
set_target_properties("sane-kds_s2000w_net" PROPERTIES VERSION 1)
+target_link_libraries("sane-kds_s2000w_net" curl)
+
install(TARGETS "sane-kds_s2000w_net"
DESTINATION "/usr/lib/x86_64-linux-gnu/sane")
\ No newline at end of file
+#include <stdio.h>
#include <stddef.h>
+#include <curl/curl.h>
#include "kds_s2000w_handler.h"
void* kds_s2000w_handler_open()
{
+ printf("open\n");
+ CURL *curl = curl_easy_init();
+ if(curl) {
+ CURLcode res;
+ curl_easy_setopt(curl, CURLOPT_URL, "https://scanner.lan.hhaalo.de");
+ res = curl_easy_perform(curl);
+ curl_easy_cleanup(curl);
+ }
return NULL;
}
\ No newline at end of file
if (strcmp(devicename, "kds_s2000w_net") != 0) {
return SANE_STATUS_INVAL;
}
+ kds_s2000w_handler_open();
return SANE_STATUS_UNSUPPORTED;
}