#define MAX_OPTION_COUNT 47
-SANE_Option_Descriptor* descriptor_array = NULL;
+__attribute_deprecated__ SANE_Option_Descriptor* descriptor_array = NULL;
+option_descriptor** descriptors = NULL;
SANE_Option_Descriptor _kds_s2000w_option_descriptor_standard_group()
{
{
kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_init_option_descriptors");
+ descriptors = malloc(sizeof(option_descriptor*) * MAX_OPTION_COUNT);
+
descriptor_array = malloc(sizeof(SANE_Option_Descriptor) * MAX_OPTION_COUNT);
descriptor_array[0] = _kds_s2000w_option_descriptor_num_options();
descriptor_array[1] = _kds_s2000w_option_descriptor_standard_group();
free(descriptor_array);
descriptor_array = NULL;
+ free(descriptors);
+ descriptors = NULL;
}
SANE_Option_Descriptor* kds_s2000w_option_descriptors_get_by_number(uint32_t number)