SANEI 1.3.1.76-0750
Data Structures
sanei_backend.h File Reference

Compatibility header file for backends. More...

Go to the source code of this file.

Data Structures

union  Option_Value
 Option_Value union. More...
 

Macros

Compatibility macros
#define __func__   "(unknown)"
 
#define PATH_MAX   1024
 
#define M_PI   3.14159265358979323846
 
#define MM_PER_INCH   25.4
 
#define sigset_t   int
 
#define sigemptyset(set)   do { *(set) = 0; } while (0)
 
#define sigfillset(set)   do { *(set) = ~0; } while (0)
 
#define sigaddset(set, signal)   do { *(set) |= sigmask (signal); } while (0)
 
#define sigdelset(set, signal)   do { *(set) &= ~sigmask (signal); } while (0)
 
#define sigaction(sig, new, old)   sigvec (sig,new,old)
 
#define SIGACTION   sigvec
 
#define SIG_BLOCK   1
 
#define SIG_UNBLOCK   2
 
#define SIG_SETMASK   3
 

Declaration of entry points:

#define sane_init(a, b)   ENTRY(init) (a,b)
 Internationalization for SANE backends. More...
 
#define sane_get_devices(a, b)   ENTRY(get_devices) (a,b)
 Internationalization for SANE backends. More...
 
#define sane_open(a, b)   ENTRY(open) (a,b)
 Internationalization for SANE backends. More...
 
#define sane_get_option_descriptor(a, b)   ENTRY(get_option_descriptor) (a,b)
 Internationalization for SANE backends. More...
 
#define sane_control_option(a, b, c, d, e)   ENTRY(control_option) (a,b,c,d,e)
 Internationalization for SANE backends. More...
 
#define sane_get_parameters(a, b)   ENTRY(get_parameters) (a,b)
 Internationalization for SANE backends. More...
 
#define sane_start(a)   ENTRY(start) (a)
 Internationalization for SANE backends. More...
 
#define sane_read(a, b, c, d)   ENTRY(read) (a,b,c,d)
 Internationalization for SANE backends. More...
 
#define sane_set_io_mode(a, b)   ENTRY(set_io_mode) (a,b)
 Internationalization for SANE backends. More...
 
#define sane_get_select_fd(a, b)   ENTRY(get_select_fd) (a,b)
 Internationalization for SANE backends. More...
 
#define sane_cancel(a)   ENTRY(cancel) (a)
 Internationalization for SANE backends. More...
 
#define sane_close(a)   ENTRY(close) (a)
 Internationalization for SANE backends. More...
 
#define sane_exit(a)   ENTRY(exit) (a)
 Internationalization for SANE backends. More...
 
#define SANE_I18N(text)   text
 Internationalization for SANE backends. More...
 
#define SANE_OPTION   1
 Internationalization for SANE backends. More...
 
SANE_Status ENTRY() init (SANE_Int *, SANE_Auth_Callback)
 Internationalization for SANE backends. More...
 
SANE_Status ENTRY() get_devices (const SANE_Device ***, SANE_Bool)
 Internationalization for SANE backends. More...
 
SANE_Status ENTRY() open (SANE_String_Const, SANE_Handle *)
 Internationalization for SANE backends. More...
 
const SANE_Option_Descriptor *ENTRY() get_option_descriptor (SANE_Handle, SANE_Int)
 Internationalization for SANE backends. More...
 
SANE_Status ENTRY() control_option (SANE_Handle, SANE_Int, SANE_Action, void *, SANE_Word *)
 Internationalization for SANE backends. More...
 
SANE_Status ENTRY() get_parameters (SANE_Handle, SANE_Parameters *)
 Internationalization for SANE backends. More...
 
SANE_Status ENTRY() start (SANE_Handle)
 Internationalization for SANE backends. More...
 
SANE_Status ENTRY() read (SANE_Handle, SANE_Byte *, SANE_Int, SANE_Int *)
 Internationalization for SANE backends. More...
 
SANE_Status ENTRY() set_io_mode (SANE_Handle, SANE_Bool)
 Internationalization for SANE backends. More...
 
SANE_Status ENTRY() get_select_fd (SANE_Handle, SANE_Int *)
 Internationalization for SANE backends. More...
 
void ENTRY() cancel (SANE_Handle)
 Internationalization for SANE backends. More...
 
void ENTRY() close (SANE_Handle)
 Internationalization for SANE backends. More...
 
void ENTRY() exit (void)
 Internationalization for SANE backends. More...
 

Detailed Description

Compatibility header file for backends.

This file provides some defines for macros missing on some platforms. It also has the SANE API entry points. sanei_backend.h must be included by every backend.

See also
sanei.h sanei_thread.h

Macro Definition Documentation

◆ sane_init

#define sane_init (   a,
 
)    ENTRY(init) (a,b)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ sane_get_devices

#define sane_get_devices (   a,
 
)    ENTRY(get_devices) (a,b)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ sane_open

#define sane_open (   a,
 
)    ENTRY(open) (a,b)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ sane_get_option_descriptor

#define sane_get_option_descriptor (   a,
 
)    ENTRY(get_option_descriptor) (a,b)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ sane_control_option

#define sane_control_option (   a,
  b,
  c,
  d,
 
)    ENTRY(control_option) (a,b,c,d,e)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ sane_get_parameters

#define sane_get_parameters (   a,
 
)    ENTRY(get_parameters) (a,b)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ sane_start

#define sane_start (   a)    ENTRY(start) (a)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ sane_read

#define sane_read (   a,
  b,
  c,
 
)    ENTRY(read) (a,b,c,d)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ sane_set_io_mode

#define sane_set_io_mode (   a,
 
)    ENTRY(set_io_mode) (a,b)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ sane_get_select_fd

#define sane_get_select_fd (   a,
 
)    ENTRY(get_select_fd) (a,b)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ sane_cancel

#define sane_cancel (   a)    ENTRY(cancel) (a)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ sane_close

#define sane_close (   a)    ENTRY(close) (a)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ sane_exit

#define sane_exit (   a)    ENTRY(exit) (a)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ SANE_I18N

#define SANE_I18N (   text)    text

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ SANE_OPTION

#define SANE_OPTION   1

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

Function Documentation

◆ init()

SANE_Status ENTRY() init ( SANE_Int *  ,
SANE_Auth_Callback   
)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ get_devices()

SANE_Status ENTRY() get_devices ( const SANE_Device ***  ,
SANE_Bool   
)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ open()

SANE_Status ENTRY() open ( SANE_String_Const  ,
SANE_Handle *   
)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ get_option_descriptor()

const SANE_Option_Descriptor *ENTRY() get_option_descriptor ( SANE_Handle  ,
SANE_Int   
)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ control_option()

SANE_Status ENTRY() control_option ( SANE_Handle  ,
SANE_Int  ,
SANE_Action  ,
void *  ,
SANE_Word *   
)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ get_parameters()

SANE_Status ENTRY() get_parameters ( SANE_Handle  ,
SANE_Parameters *   
)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ start()

SANE_Status ENTRY() start ( SANE_Handle  )

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ read()

SANE_Status ENTRY() read ( SANE_Handle  ,
SANE_Byte *  ,
SANE_Int  ,
SANE_Int *   
)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ set_io_mode()

SANE_Status ENTRY() set_io_mode ( SANE_Handle  ,
SANE_Bool   
)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ get_select_fd()

SANE_Status ENTRY() get_select_fd ( SANE_Handle  ,
SANE_Int *   
)

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ cancel()

void ENTRY() cancel ( SANE_Handle  )

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ close()

void ENTRY() close ( SANE_Handle  )

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");

◆ exit()

void ENTRY() exit ( void  )

Internationalization for SANE backends.

Add SANE_I18N() to all texts that can be translated. E.g. out_txt = SANE_I18N("Hello");