#include <stdio.h>
+#include <stdlib.h>
#include <sane/sane.h>
SANE_Status _sane_kds_s2000w_net_init(SANE_Int * version_code, SANE_Auth_Callback authorize)
{
+ SANE_Char* username = malloc(SANE_MAX_USERNAME_LEN * sizeof(SANE_Char));
+ SANE_Char* password = malloc(SANE_MAX_PASSWORD_LEN * sizeof(SANE_Char));
+
SANE_String_Const resource = "kds_s2000w_net";
- SANE_Char* user = "";
- SANE_Char* pass = "";
+ SANE_Char* user = username;
+ SANE_Char* pass = password;
printf("Hello sane init\n");
authorize(resource, user, pass);