#include <string.h>
#include <sane/saneopts.h>
#include "kds_s2000w_option_descriptors.h"
-#include "kds_s2000w_debug.h"
#define PROFILE_FULL_MAX_OPTION_COUNT 48
#define PROFILE_230802_V1_0_36_MAX_OPTION_COUNT 26
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_num_options()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_num_options");
-
SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
if (descriptor == NULL)
return NULL;
******************************************************************************/
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_standard_group()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_standard_group");
-
SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
if (descriptor == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_scan_source()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_scan_source");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 4);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_mode()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_mode");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 4);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_dpi()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_dpi");
-
SANE_Word* constraint = malloc(sizeof(SANE_Word) * 6);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_scanside()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_scanside");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 3);
if (constraint == NULL)
return NULL;
******************************************************************************/
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_geometry_group()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_scan_area_group");
-
SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
if (descriptor == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_cropping_mode()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_cropping_mode");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 5);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_cropping_image()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_cropping_image");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 3);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_offset_x()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_image_offset_x");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_offset_y()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_image_offset_y");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_width()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_image_width");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_height()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_image_height");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
******************************************************************************/
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_boldness_smoothing_group()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_advanced_group");
-
SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
if (descriptor == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_foreground_boldness_mode()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_foreground_boldness_mode");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 4);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_foreground_boldness_aggressiveness()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_foreground_boldness_aggressiveness");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_background_smoothing_mode()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_background_smoothing_mode");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 4);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_background_smoothing_aggressiveness()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_background_smoothing_aggressiveness");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
******************************************************************************/
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_boldness_color_group()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_boldness_color_group");
-
SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
if (descriptor == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_drop()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_drop");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 9);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_drop_out_aggressiveness()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_drop_out_aggressiveness");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_auto_brightness_mode()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_auto_brightness_mode");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 4);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_brightness()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_brightness");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_contrast()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_contrast");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_balance_mode()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_balance_mode");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 5);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_balance_agressiveness()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_balancea_agressiveness");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_balance_red()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_balance_red");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_balance_green()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_balance_green");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_balance_blue()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_balance_blue");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_color_sharpen()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_color_sharpen");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 5);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_binarization_contrast()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_binarization_contrast");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_config_reset()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_config_reset");
-
SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
if (descriptor == NULL)
return NULL;
******************************************************************************/
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_processing_group()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_image_processing_group");
-
SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
if (descriptor == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_skip_blank_pages()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_skip_blank_pages");
-
SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
if (descriptor == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_skip_blank_page_content()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_skip_blank_page_content");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_hole_fill()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_hole_fill");
-
SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
if (descriptor == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_post_scan_rotation()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_post_scan_rotation");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 6);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_edge_fill()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_edge_fill");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 4);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_image_border()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_image_border");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 4);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_jpeg_quality()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_jpeg_quality");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 6);
if (constraint == NULL)
return NULL;
******************************************************************************/
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_feeder_group()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_feeder_group");
-
SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
if (descriptor == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_autostart()
{
- kds_s2000w_debug_printf(ALL, "_kds_s2000w_option_descriptor_autostart");
-
SANE_Option_Descriptor* descriptor = malloc(sizeof(SANE_Option_Descriptor));
if (descriptor == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_max_document_length()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_max_document_length");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_transport_handling()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_transport_handling");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 5);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_multifeed_sensitivity()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_multifeed_sensitivity");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 5);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor *_kds_s2000w_option_descriptor_multifeed_response()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_multifeed_response");
-
const char** constraint = malloc(sizeof(SANE_String_Const*) * 3);
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_document_feeder_timeout()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_document_feeder_timeout");
-
SANE_Range* constraint = malloc(sizeof(SANE_Range));
if (constraint == NULL)
return NULL;
SANE_Option_Descriptor* _kds_s2000w_option_descriptor_document_feeder_timeout_response()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_document_feeder_timeout_response");
-
char** constraint = malloc(sizeof(SANE_String_Const*) * 4);
if (constraint == NULL)
return NULL;
******************************************************************************/
SANE_Status kds_s2000w_option_descriptors_init(profile_t profile)
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptors_init");
-
switch (profile) {
case PROFILE_FULL:
return _kds_s2000w_option_descriptors_init_full_profile();
void kds_s2000w_option_descriptors_free()
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptors_free");
-
if (descriptors == NULL)
return;
option_descriptor_t* kds_s2000w_option_descriptors_full_get_by_number(uint32_t number)
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_full_get_by_number");
-
if (number >= max_option_count)
return NULL;
SANE_Option_Descriptor* kds_s2000w_option_descriptors_get_by_number(uint32_t number)
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptors_get_by_number");
-
if (number >= max_option_count)
return NULL;
SANE_Option_Descriptor* kds_s2000w_option_descriptors_get_by_config_name(const char* name)
{
- kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptors_get_by_config_name");
-
for (int i = 0; i < max_option_count; i++) {
if (strcmp(descriptors[i]->config_name, name) == 0)
return descriptors[i]->descriptor;