[sane-devel] Patch to make XSane work with SANE 1.1

2008-10-07 Thread Julien BLACHE
Julien BLACHE wrote: > do > { >while (gtk_events_pending()) > gtk_main_iteration(); > >status = sane_start(dev); > } while (status == SANE_STATUS_WARMING_UP); Oh, also, that breaks the API and means that even if SANE 1.1 is binary-compatible with SANE 1.0, a soname bump is mandate

[sane-devel] Patch to make XSane work with SANE 1.1

2008-10-07 Thread Julien BLACHE
stef wrote: Hi, >> Please, tell me this is not busy-looping on sane_start() ... > > sorry can't tell you that. It is indeed doing busy-looping. While it > works > fine with the pnm backend and the rts8891 which handles warming-up, adding a > sleep() in the loop would be better. However,

[sane-devel] Patch to make XSane work with SANE 1.1

2008-10-07 Thread stef
Le Tuesday 07 October 2008 21:51:10 m. allan noah, vous avez ?crit?: > how about adding a 1/2 second usleep and an upper bound on the number of > tries? > > allan > > On Tue, Oct 7, 2008 at 3:44 PM, stef wrote: > > Le Tuesday 07 October 2008 10:29:21 Julien BLACHE, vous avez ?crit : > >> stef wro

[sane-devel] Patch to make XSane work with SANE 1.1

2008-10-07 Thread stef
Le Tuesday 07 October 2008 10:29:21 Julien BLACHE, vous avez ?crit?: > stef wrote: > > Hi, > > > +#if SANE_CURRENT_MINOR >= 1 > > + do > > + { > > +status = sane_start(dev); > > + } while (status == SANE_STATUS_WARMING_UP); > > +#else > > Please, tell me this is not busy-looping on sane_sta

[sane-devel] Patch to make XSane work with SANE 1.1

2008-10-07 Thread m. allan noah
how about adding a 1/2 second usleep and an upper bound on the number of tries? allan On Tue, Oct 7, 2008 at 3:44 PM, stef wrote: > Le Tuesday 07 October 2008 10:29:21 Julien BLACHE, vous avez ?crit : >> stef wrote: >> >> Hi, >> >> > +#if SANE_CURRENT_MINOR >= 1 >> > + do >> > + { >> > +s

[sane-devel] Patch to make XSane work with SANE 1.1

2008-10-07 Thread Julien BLACHE
stef wrote: Hi, > +#if SANE_CURRENT_MINOR >= 1 > + do > + { > +status = sane_start(dev); > + } while (status == SANE_STATUS_WARMING_UP); > +#else Please, tell me this is not busy-looping on sane_start() ... JB. -- Julien BLACHE

[sane-devel] scanmonitord

2008-10-07 Thread m. allan noah
For those not on the sane-commit list, i have just added a new package to the experimental tree, scanmonitord from simon matter. It uses a shell script to wrap a modified sanebuttond C program and a series of plugins to handle the actions on each scanner. thanks simon for the contribution. allan

[sane-devel] Patch to make XSane work with SANE 1.1

2008-10-07 Thread stef
attachment was scrubbed... Name: xsane1.1.patch Type: text/x-diff Size: 1676 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20081007/de9a917a/attachment.patch