17#if __STDC_VERSION__ >= 199901L
22# define __func__ __FUNCTION__
24# define __func__ "(unknown)"
31# define O_NONBLOCK O_NDELAY
34# define O_NONBLOCK FNDELAY
46#define M_PI 3.14159265358979323846
50#define MM_PER_INCH 25.4
53#ifdef HAVE_SIGPROCMASK
54# define SIGACTION sigaction
88# define sigemptyset(set) do { *(set) = 0; } while (0)
89# define sigfillset(set) do { *(set) = ~0; } while (0)
90# define sigaddset(set,signal) do { *(set) |= sigmask (signal); } while (0)
91# define sigdelset(set,signal) do { *(set) &= ~sigmask (signal); } while (0)
92# define sigaction(sig,new,old) sigvec (sig,new,old)
97# define SIGACTION sigvec
100# define SIG_SETMASK 3
112extern SANE_Status
ENTRY(
init) (SANE_Int *, SANE_Auth_Callback);
114extern SANE_Status
ENTRY(
open) (SANE_String_Const, SANE_Handle *);
115extern const SANE_Option_Descriptor *
118 void *, SANE_Word *);
121extern SANE_Status
ENTRY(
read) (SANE_Handle, SANE_Byte *, SANE_Int,
136#define sane_init(a,b) ENTRY(init) (a,b)
137#define sane_get_devices(a,b) ENTRY(get_devices) (a,b)
138#define sane_open(a,b) ENTRY(open) (a,b)
139#define sane_get_option_descriptor(a,b) ENTRY(get_option_descriptor) (a,b)
140#define sane_control_option(a,b,c,d,e) ENTRY(control_option) (a,b,c,d,e)
141#define sane_get_parameters(a,b) ENTRY(get_parameters) (a,b)
142#define sane_start(a) ENTRY(start) (a)
143#define sane_read(a,b,c,d) ENTRY(read) (a,b,c,d)
144#define sane_set_io_mode(a,b) ENTRY(set_io_mode) (a,b)
145#define sane_get_select_fd(a,b) ENTRY(get_select_fd) (a,b)
146#define sane_cancel(a) ENTRY(cancel) (a)
147#define sane_close(a) ENTRY(close) (a)
148#define sane_exit(a) ENTRY(exit) (a)
158#define SANE_I18N(text) text
SANE_Status ENTRY() open(SANE_String_Const, SANE_Handle *)
Internationalization for SANE backends.
void ENTRY() exit(void)
Internationalization for SANE backends.
SANE_Status ENTRY() set_io_mode(SANE_Handle, SANE_Bool)
Internationalization for SANE backends.
SANE_Status ENTRY() get_parameters(SANE_Handle, SANE_Parameters *)
Internationalization for SANE backends.
const SANE_Option_Descriptor *ENTRY() get_option_descriptor(SANE_Handle, SANE_Int)
Internationalization for SANE backends.
void ENTRY() cancel(SANE_Handle)
Internationalization for SANE backends.
SANE_Status ENTRY() init(SANE_Int *, SANE_Auth_Callback)
Internationalization for SANE backends.
SANE_Status ENTRY() get_select_fd(SANE_Handle, SANE_Int *)
Internationalization for SANE backends.
void ENTRY() close(SANE_Handle)
Internationalization for SANE backends.
SANE_Status ENTRY() control_option(SANE_Handle, SANE_Int, SANE_Action, void *, SANE_Word *)
Internationalization for SANE backends.
SANE_Status ENTRY() read(SANE_Handle, SANE_Byte *, SANE_Int, SANE_Int *)
Internationalization for SANE backends.
SANE_Status ENTRY() get_devices(const SANE_Device ***, SANE_Bool)
Internationalization for SANE backends.
SANE_Status ENTRY() start(SANE_Handle)
Internationalization for SANE backends.
Support for printing debug messages.
#define ENTRY(name)
Expands to sane_BACKEND_NAME_name.
Definition: sanei_debug.h:74
Option_Value union.
Definition: sanei_backend.h:167
SANE_Word w
word
Definition: sanei_backend.h:169
SANE_Word * wa
word array
Definition: sanei_backend.h:170
SANE_String s
string
Definition: sanei_backend.h:171
SANE_Bool b
bool
Definition: sanei_backend.h:168