>I suggest just using an opaque pointer ("void *") instead of any
> structure.... No need to tie a backend down to passing any
> particular set of data to its threads, when this threading is all
> quite backend-dependent anyway. (Much like SANE_Handle is cast
> about into all those Mustek_Scanner, Umax_Scanner, etc., ptrs.)
I'm doing it already: beginthread accept only a pointer to void for data.
>I still like the idea of adopting a single config file for all the
> backends, with a SAMBA-config-like syntax to split it up into
> per-backend blocks, and set tokens = values. Then provide a
> mechanism to read this once and give access to the the database
> of values to each backend.
very interesting. Also many people forget to create a specific configuration file, so having only one file to
mantain, should be easy for them.
Bye,
Yuri Dario
/*
* member of TeamOS/2 - Italy
*/
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com