sane.h   sane.h 
skipping to change at line 23 skipping to change at line 23
This file declares SANE application interface. See the SANE This file declares SANE application interface. See the SANE
standard for a detailed explanation of the interface. */ standard for a detailed explanation of the interface. */
#ifndef sane_h #ifndef sane_h
#define sane_h #define sane_h
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/*
* SANE types and defines
*/
#define SANE_CURRENT_MAJOR 1 #define SANE_CURRENT_MAJOR 1
#define SANE_VERSION_CODE(major, minor, build) \ #define SANE_VERSION_CODE(major, minor, build) \
( (((SANE_Word) (major) & 0xff) << 24) \ ( (((SANE_Word) (major) & 0xff) << 24) \
| (((SANE_Word) (minor) & 0xff) << 16) \ | (((SANE_Word) (minor) & 0xff) << 16) \
| (((SANE_Word) (build) & 0xffff) << 0)) | (((SANE_Word) (build) & 0xffff) << 0))
#define SANE_VERSION_MAJOR(code) ((((SANE_Word)(code)) >> 24) & 0xf f) #define SANE_VERSION_MAJOR(code) ((((SANE_Word)(code)) >> 24) & 0xf f)
#define SANE_VERSION_MINOR(code) ((((SANE_Word)(code)) >> 16) & 0xf f) #define SANE_VERSION_MINOR(code) ((((SANE_Word)(code)) >> 16) & 0xf f)
#define SANE_VERSION_BUILD(code) ((((SANE_Word)(code)) >> 0) & 0xfff f) #define SANE_VERSION_BUILD(code) ((((SANE_Word)(code)) >> 0) & 0xfff f)
#define SANE_FALSE 0 #define SANE_FALSE 0
#define SANE_TRUE 1 #define SANE_TRUE 1
typedef unsigned char SANE_Byte; typedef unsigned char SANE_Byte;
typedef int SANE_Word; typedef int SANE_Word;
typedef SANE_Word SANE_Bool; typedef SANE_Word SANE_Bool;
typedef SANE_Word SANE_Int; typedef SANE_Word SANE_Int;
typedef char SANE_Char; typedef char SANE_Char;
typedef SANE_Char *SANE_String; typedef SANE_Char *SANE_String;
typedef const SANE_Char *SANE_String_Const; typedef const SANE_Char *SANE_String_Const;
typedef void *SANE_Handle; typedef void *SANE_Handle;
typedef SANE_Word SANE_Fixed; typedef SANE_Word SANE_Fixed;
#define SANE_FIXED_SCALE_SHIFT 16 #define SANE_FIXED_SCALE_SHIFT 16
#define SANE_FIX(v) ((SANE_Word) ((v) * (1 << SANE_FIXED_SCALE_SHIFT))) #define SANE_FIX(v) ((SANE_Word) ((v) * (1 << SANE_FIXED_SCALE_SHIFT)))
#define SANE_UNFIX(v) ((double)(v) / (1 << SANE_FIXED_SCALE_SHIFT)) #define SANE_UNFIX(v) ((double)(v) / (1 << SANE_FIXED_SCALE_SHIFT))
 End of changes. 2 change blocks. 
4 lines changed or deleted 8 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/