SANE_Option_Descriptor* option_descriptors = NULL;
SANE_Device* device_info = NULL;
-SANE_Parameters* parameter = NULL;
SANE_Status _sane_kds_s2000w_net_init(SANE_Int* version_code, SANE_Auth_Callback authorize)
{
*version_code = SANE_VERSION_CODE(1, 0, 0);
option_descriptors = kds_s2000w_option_descriptor_init_option_descriptors();
device_info = malloc(sizeof(SANE_Device));
- parameter = malloc(sizeof(SANE_Parameters));
return SANE_STATUS_GOOD;
}
free(device_info);
device_info = NULL;
- free(parameter);
- parameter = NULL;
kds_s2000w_option_descriptor_free_option_descriptors(option_descriptors);
}
SANE_Status _sane_kds_s2000w_net_get_parameters(SANE_Handle handle,
SANE_Parameters* params)
{
- parameter->format = SANE_FRAME_GRAY;
- parameter->last_frame = SANE_TRUE;
- parameter->bytes_per_line = 0;
- parameter->pixels_per_line = 0;
- parameter->lines = 0;
- parameter->depth = 0;
-
- params = parameter;
+ params->format = SANE_FRAME_GRAY;
+ params->last_frame = SANE_TRUE;
+ params->bytes_per_line = 0;
+ params->pixels_per_line = 0;
+ params->lines = 0;
+ params->depth = 0;
+
return SANE_STATUS_GOOD;
}