[sane-devel] Sane Release 1.1.0 ?

Julien BLACHE jb at jblache.org
Thu Nov 6 18:20:09 UTC 2008


"m. allan noah" <kitno455 at gmail.com> wrote:

> In fact, adding a function is worse that i first though. A recent
> frontend could connect directly to an old backend, inspect the version
> number just like the standard says, and then call sane_status(). Bam!
> This never happens with our current design, because old backends are
> forward compatible.

If you are using 1.1 features, you shouldn't use a 1.0 backend. If
someone does that, they deserve the nice error message they'll be
getting from the linker. "if it hurts, don't do it"

See how quite a number of big projects do that nowadays, and it's
perfectly fine. GTK and GNOME introduce new API calls all the time,
and if you use them, you need to use the proper version.

There's nothing wrong with that as long as a 1.1 backend works just
like a 1.0 backend if the app expects a 1.0 backend. No surprises for
older frontends, newer frontends know they use newer features and need
newer libs.

JB.

-- 
Julien BLACHE                                   <http://www.jblache.org> 
<jb at jblache.org>                                  GPG KeyID 0xF5D65169



More information about the sane-devel mailing list