Fixed return code for sane_set_io_mode().

DEVEL_2_0_BRANCH-1
Frank Zago 2002-08-31 15:56:33 +00:00
rodzic 72fd6c7d6c
commit 3385a045ea
1 zmienionych plików z 18 dodań i 1 usunięć

Wyświetl plik

@ -2624,14 +2624,31 @@ sane_read (SANE_Handle handle, SANE_Byte * buf, SANE_Int max_len,
SANE_Status
sane_set_io_mode (SANE_Handle handle, SANE_Bool non_blocking)
{
SANE_Status status;
Teco_Scanner *dev = handle;
DBG (DBG_proc, "sane_set_io_mode: enter\n");
handle = handle; /* silence gcc */
non_blocking = non_blocking; /* silence gcc */
if (dev->scanning == SANE_FALSE)
{
return SANE_STATUS_INVAL;
}
if (non_blocking == SANE_FALSE)
{
status = SANE_STATUS_GOOD;
}
else
{
status = SANE_STATUS_UNSUPPORTED;
}
DBG (DBG_proc, "sane_set_io_mode: exit\n");
return SANE_STATUS_UNSUPPORTED;
return status;
}
SANE_Status