]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add test output messages
authorBastian Dehn <hhaalo@arcor.de>
Fri, 19 Jan 2024 15:41:39 +0000 (16:41 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 19 Jan 2024 15:41:39 +0000 (16:41 +0100)
src/kds_s2000w_net.c

index f1945a67ec36c756e57f560a25f0d48c2aae7632..93b2cde815f97d4076f0e854d55279a13d797804 100644 (file)
@@ -3,74 +3,78 @@
 #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 = username;
-       SANE_Char* pass = password;
-       
-       printf("Hello sane init\n");
-       authorize(resource, user, pass);
+{      
+       printf("kds_s2000w_net init\n");
 }
 
 void _sane_kds_s2000w_net_exit(void)
 {
-       printf("Bye sane exit\n");
+       printf("kds_s2000w_net exit\n");
 }
 
 SANE_Status _sane_kds_s2000w_net_get_devices(SANE_String_Const devicename,
        SANE_Handle* handle)
 {
+       printf("kds_s2000w_net get devices\n");
 }
 
 SANE_Status _sane_kds_s2000w_net_open(SANE_String_Const devicename,
        SANE_Handle handle)
 {
+       printf("kds_s2000w_net open\n");
 }
 
 void _sane_kds_s2000w_net_close(SANE_Handle handle)
 {
+       printf("kds_s2000w_net close\n");
 }
 
 const SANE_Option_Descriptor* _sane_kds_s2000w_net_get_option_descriptor(
        SANE_Handle handle, SANE_Int option)
 {
+       printf("kds_s2000w_net get option descriptor\n");
 }
 
 SANE_Status _sane_kds_s2000w_net_control_option(SANE_Handle handle,
        SANE_Int option, SANE_Action action, void *value, SANE_Int* info)
 {
+       printf("kds_s2000w_net control option\n");
 }
 
 SANE_Status _sane_kds_s2000w_net_get_parameters(SANE_Handle handle,
        SANE_Parameters* params)
 {
+       printf("kds_s2000w_net get parameters\n");
 }
 
 SANE_Status _sane_kds_s2000w_net_start(SANE_Handle handle)
 {
+       printf("kds_s2000w_net start\n");
 }
 
 SANE_Status _sane_kds_s2000w_net_read(SANE_Handle handle, SANE_Byte* data,
        SANE_Int max_length, SANE_Int* length)
 {
+       printf("kds_s2000w_net read\n");
 }
 
 void _sane_kds_s2000w_net_cancel(SANE_Handle handle)
 {
+       printf("kds_s2000w_net cancel\n");
 }
 
 SANE_Status _sane_kds_s2000w_net_set_io_mode(SANE_Handle handle,
        SANE_Bool non_blocking)
 {
+       printf("kds_s2000w_net set io mode\n");
 }
 
 SANE_Status _sane_kds_s2000w_net_get_select_fd(SANE_Handle handle, SANE_Int* fd)
 {
+       printf("kds_s2000w_net get select fd\n");
 }
 
 SANE_String_Const _sane_kds_s2000w_net_strstatus(SANE_Status status)
 {
+       printf("kds_s2000w_net strstatus\n");
 }
\ No newline at end of file