Revert "avision: kill unused function"

This reverts commit 1c908927de.
merge-requests/1/head
Julien BLACHE 2010-06-23 18:53:26 +02:00
rodzic f535dd8cd9
commit 79dcfdd72d
1 zmienionych plików z 22 dodań i 0 usunięć

Wyświetl plik

@ -5984,6 +5984,28 @@ media_check (Avision_Scanner* s)
return status;
}
static SANE_Status
flush_media (Avision_Scanner* s)
{
Avision_Device* dev = s->hw;
SANE_Status status;
if (s->source_mode_dim == AV_ADF_DIM && dev->inquiry_batch_scan)
{
DBG (1, "flush_media: flushing pages out of batch scanner\n");
do {
status = media_check (s);
if (status == SANE_STATUS_GOOD) {
SANE_Status status2 = reserve_unit (s);
DBG (1, "flush_media: reserve status: %d\n", status2);
status2 = release_unit (s, 0);
DBG (1, "flush_media: release status: %d\n", status2);
}
} while (status == SANE_STATUS_GOOD);
}
return SANE_STATUS_GOOD;
}
static SANE_Status
object_position (Avision_Scanner* s, uint8_t position)
{