if (h->current_scanner_config != NULL)
config = json_object_object_get(h->current_scanner_config, "Configuration");
- option_descriptor* descriptor = kds_s2000w_option_descriptor_full_get_by_number(option);
+ option_descriptor* descriptor = kds_s2000w_option_descriptors_full_get_by_number(option);
json_object* value_object = NULL;
if (strcmp(descriptor->config_name, OPTION_COUNT) == 0) {
config = json_object_object_get(h->current_scanner_config, "Configuration");
if (h->current_scanner_config != NULL)
config = json_object_object_get(h->current_scanner_config, "Configuration");
- option_descriptor* descriptor = kds_s2000w_option_descriptor_full_get_by_number(option);
+ option_descriptor* descriptor = kds_s2000w_option_descriptors_full_get_by_number(option);
json_object* value_object = NULL;
value_object = json_object_object_get(config, descriptor->config_name);
return max_option_count;
}
-option_descriptor* kds_s2000w_option_descriptor_full_get_by_number(uint32_t number)
+option_descriptor* kds_s2000w_option_descriptors_full_get_by_number(uint32_t number)
{
kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptor_full_get_by_number");
void kds_s2000w_option_descriptors_free();
uint8_t kds_s2000w_option_descriptors_get_max_option_count();
-option_descriptor* kds_s2000w_option_descriptor_full_get_by_number(uint32_t number);
+option_descriptor* kds_s2000w_option_descriptors_full_get_by_number(uint32_t number);
SANE_Option_Descriptor* kds_s2000w_option_descriptors_get_by_number(uint32_t number);
__attribute_deprecated__ SANE_Option_Descriptor* kds_s2000w_option_descriptors_get_by_name(const char* name);
SANE_Option_Descriptor* kds_s2000w_option_descriptors_get_by_config_name(const char* name);
void kds_s2000w_option_full_get_descriptor_by_number()
{
- option_descriptor* option = kds_s2000w_option_descriptor_full_get_by_number(31);
+ option_descriptor* option = kds_s2000w_option_descriptors_full_get_by_number(31);
assert_string_equal(option->config_name, "Reset");
}
{
uint8_t max_option_count = kds_s2000w_option_descriptors_get_max_option_count();
- option_descriptor* option = kds_s2000w_option_descriptor_full_get_by_number(max_option_count);
+ option_descriptor* option = kds_s2000w_option_descriptors_full_get_by_number(max_option_count);
assert_null(option);
}
\ No newline at end of file