On Mon, Apr 26, 2010 at 2:53 AM, Olaf Meeuwissen <olaf.meeuwissen at avasys.jp> wrote: > SANE_STATUS_WARMING_UP is one of the statusses that has been considered > for addition to the API. ?IIRC, sane-backends-1.0.21 would ship without > any API changes (and the "#if 0" indicates that it will), so it appears > you have found a bug in scanadf.c.
Isn't it better to have one switch like SANE_API_2 in sane.h instead of two "#if 0" (See patch to current git master in attachment)? Then there is flexibility to switch on new features with one #define in code or by passing argument to gcc. WIth those changes old sane-frontends compiles successfully (except you need to either add #define SANE_API_2 1 to scanadf.c or pass additional argument when compiling during make). Best regards, Ilmars Poikans -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-header.patch Type: text/x-patch Size: 2834 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20100426/6c5c0a18/attachment.bin>
