[sane-devel] [SANE2 proposal] Error handling
Julien BLACHE
jb at jblache.org
Sat Nov 29 16:23:24 GMT 2003
Andi McLean <andi.mclean at ntlworld.com> wrote:
Hi,
> Why not combine the two e.g.
>
> typedef SANE_Status
> {
> int code;
> int backend_code;
> } SANE_Status;
That's another possibility, but given the way the SANE status codes
are defined at the moment, they could share a 32 bit integer with a
backend-specific status code without any problem. So let's spare some
memory ;)
> You could always use a short instead of an int, which is almost the same
> as proposal 2, but easier to access (No nasty bit manipulation)
That'd only require simple macros to build and use the SANE_Status
returned, it's not that nasty or difficult imho ;)
JB.
--
Julien BLACHE <http://www.jblache.org>
<jb at jblache.org>
More information about the sane-devel
mailing list