yushulx / linux-document-scanning

MIT License
12 stars 8 forks source link

how to pass an option to a backend? #3

Open sail2themoon opened 2 years ago

sail2themoon commented 2 years ago

Your hello_sane is great! So little code, really clear, thank you. I'm trying to pass an option to a backend (cardscan), and can't figure out how. The Sane-documentation has no example for this, and in scanimage.c (which is actually successfully capable of sending my desired option) I wasn't able to recognize the relevant parts. Is there any short example of how to pass an option to a backend, that I've missed so far?

Kind regards

yushulx commented 2 years ago

@sail2themoon my code is based on scanimage.c. If scanimage.c can reach your requirement, you should take some time to find out how it works. I suggest that you debug scanimage.c with some logs and breakpoints.

sail2themoon commented 2 years ago

Thank you, I'll try debugging and breakpoints.