sane.h | sane.h | |||
---|---|---|---|---|
skipping to change at line 74 | skipping to change at line 74 | |||
SANE_STATUS_NO_MEM /* out of memory */ | SANE_STATUS_NO_MEM /* out of memory */ | |||
} | } | |||
SANE_Status; | SANE_Status; | |||
typedef enum | typedef enum | |||
{ | { | |||
SANE_TYPE_BOOL = 0, | SANE_TYPE_BOOL = 0, | |||
SANE_TYPE_INT, | SANE_TYPE_INT, | |||
SANE_TYPE_FIXED, | SANE_TYPE_FIXED, | |||
SANE_TYPE_STRING, | SANE_TYPE_STRING, | |||
SANE_TYPE_GROUP, | SANE_TYPE_BUTTON, | |||
SANE_TYPE_BUTTON | SANE_TYPE_GROUP | |||
} | } | |||
SANE_Value_Type; | SANE_Value_Type; | |||
typedef enum | typedef enum | |||
{ | { | |||
SANE_UNIT_NONE = 0, /* the value is unit-less (e.g., # o f scans) */ | SANE_UNIT_NONE = 0, /* the value is unit-less (e.g., # o f scans) */ | |||
SANE_UNIT_PIXEL, /* value is number of pixels */ | SANE_UNIT_PIXEL, /* value is number of pixels */ | |||
SANE_UNIT_BIT, /* value is number of bits */ | SANE_UNIT_BIT, /* value is number of bits */ | |||
SANE_UNIT_MM, /* value is millimeters */ | SANE_UNIT_MM, /* value is millimeters */ | |||
SANE_UNIT_DPI, /* value is resolution in dots/inch */ | SANE_UNIT_DPI, /* value is resolution in dots/inch */ | |||
skipping to change at line 190 | skipping to change at line 190 | |||
extern SANE_Status sane_init (SANE_Int * version_code); | extern SANE_Status sane_init (SANE_Int * version_code); | |||
extern SANE_Status sane_exit (void); | extern SANE_Status sane_exit (void); | |||
extern SANE_Status sane_get_devices (const SANE_Device *** device_list); | extern SANE_Status sane_get_devices (const SANE_Device *** device_list); | |||
extern SANE_Status sane_open (SANE_String_Const devicename, | extern SANE_Status sane_open (SANE_String_Const devicename, | |||
SANE_Handle * handle); | SANE_Handle * handle); | |||
extern SANE_Status sane_close (SANE_Handle handle); | extern SANE_Status sane_close (SANE_Handle handle); | |||
extern const SANE_Option_Descriptor * | extern const SANE_Option_Descriptor * | |||
sane_get_option_descriptor (SANE_Handle handle, SANE_Int option); | sane_get_option_descriptor (SANE_Handle handle, SANE_Int option); | |||
extern SANE_Status sane_control_option (SANE_Handle handle, SANE_Int option , | extern SANE_Status sane_control_option (SANE_Handle handle, SANE_Int option , | |||
SANE_Action action, void *value, | SANE_Action action, void *value, | |||
SANE_Word * info); | SANE_Int * info); | |||
extern SANE_Status sane_get_parameters (SANE_Handle handle, | extern SANE_Status sane_get_parameters (SANE_Handle handle, | |||
SANE_Parameters * params); | SANE_Parameters * params); | |||
extern SANE_Status sane_start (SANE_Handle handle); | extern SANE_Status sane_start (SANE_Handle handle); | |||
extern SANE_Status sane_read (SANE_Handle handle, SANE_Byte * data, | extern SANE_Status sane_read (SANE_Handle handle, SANE_Byte * data, | |||
SANE_Int max_length, SANE_Int * length); | SANE_Int max_length, SANE_Int * length); | |||
extern SANE_Status sane_cancel (SANE_Handle handle); | extern SANE_Status sane_cancel (SANE_Handle handle); | |||
extern SANE_Status sane_set_io_mode (SANE_Handle handle, | extern SANE_Status sane_set_io_mode (SANE_Handle handle, | |||
SANE_Bool non_blocking); | SANE_Bool non_blocking); | |||
extern SANE_Status sane_get_select_fd (SANE_Handle handle, | extern SANE_Status sane_get_select_fd (SANE_Handle handle, | |||
SANE_Int * fd); | SANE_Int * fd); | |||
End of changes. 2 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added | |||