#include <stdlib.h>
#include <sane/sane.h>
-SANE_Status _sane_kds_s2000w_net_init(SANE_Int * version_code, SANE_Auth_Callback authorize)
+SANE_Status _sane_kds_s2000w_net_init(SANE_Int* version_code, SANE_Auth_Callback authorize)
{
+ if (version_code == NULL) {
+ printf("verson_code pointer is NULL\n");
+ return SANE_STATUS_INVAL;
+ }
+
+ if (authorize == NULL) {
+ printf("verson_code pointer is NULL\n");
+ return SANE_STATUS_INVAL;
+ }
+
+ *version_code = SANE_VERSION_CODE(1, 0, 0);
+ printf("version_code %d", version_code);
printf("kds_s2000w_net init\n");
return SANE_STATUS_GOOD;
SANE_Handle* handle)
{
printf("kds_s2000w_net get devices\n");
+
+ return SANE_STATUS_GOOD;
}
SANE_Status _sane_kds_s2000w_net_open(SANE_String_Const devicename,
}
SANE_Status _sane_kds_s2000w_net_control_option(SANE_Handle handle,
- SANE_Int option, SANE_Action action, void *value, SANE_Int* info)
+ SANE_Int option, SANE_Action action, void* value, SANE_Int* info)
{
printf("kds_s2000w_net control option\n");