[sane-devel] [canon_dr] Imprinter detection

m. allan noah kitno455 at gmail.com
Thu May 5 23:34:15 BST 2022


Please create a new function, like init_panel(), and call it after
init_model.

allan


On Thu, May 5, 2022 at 5:39 PM Charles Quarra via sane-devel <
sane-devel at alioth-lists.debian.net> wrote:
>
> Good afternoon,
>
> I've been working on the MR for imprinter support for the canon_dr
backend (MR: https://gitlab.com/sane-project/backends/-/merge_requests/706 )
> canon_dr: add imprinting support for DR-X10C (!706) · Merge requests ·
sane-project / backends · GitLab
> enables all imprinting features exposed by the TWAIN driver:
pre-imprinting and post-imprinting with all addon modes font size,
orientation and spacing
> gitlab.com
>>
>
> Since imprinters are optional hardware modules, it makes sense to detect
them at runtime and make the corresponding SANE options inactive. I have
some implementation for runtime detection of the imprinters.
>
> My question is what would be the preferred place to do this runtime
detection.
>
> My instinct would be to add the required read cmd inside the init_model
function, specifically here:
>
>
https://gitlab.com/sane-project/backends/-/merge_requests/706/diffs#bd44e4ec108bed0a73ccda8521103ba2ba4b2a5b_1894_1905
> canon_dr: add imprinting support for DR-X10C (!706) · Merge requests ·
sane-project / backends · GitLab
> enables all imprinting features exposed by the TWAIN driver:
pre-imprinting and post-imprinting with all addon modes font size,
orientation and spacing
> gitlab.com
>>>
> The reason I want to check with the backend maintainers first, is that
I've not seen other usb/scsi commands done inside init_model, wondering if
perhaps there is a good reason for that?
>
> Thanks for your help,
>
> Charles Quarra
>


--
"well, I stand up next to a mountain- and I chop it down with the edge of
my hand"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20220505/37f63c25/attachment-0001.htm>


More information about the sane-devel mailing list