#endif
*version_code = SANE_VERSION_CODE(MAJOR, MINOR, PATCH);
- kds_s2000w_option_descriptor_init_option_descriptors();
return SANE_STATUS_GOOD;
}
if (strcmp(devicename, "kds_s2000w_net") != 0)
return SANE_STATUS_INVAL;
+ kds_s2000w_option_descriptor_init_option_descriptors();
kds_s2000w_handler_open(devicename, handle);
handler* h = (handler*) *handle;
if (h->state == BUSY)
#include "kds_s2000w_client_mock.h"
#include "../src/kds_s2000w_config.h"
#include "../src/kds_s2000w_net.h"
+#include "../src/kds_s2000w_option_descriptors.h"
#include "../src/kds_s2000w_handler.h"
#include "../src/kds_s2000w_image_converter.h"
assert_int_equal(h->sessionid, 1251877821);
assert_int_equal(status, SANE_STATUS_GOOD);
+ kds_s2000w_option_descriptor_free_option_descriptors();
free_handler(h);
h = NULL;
kds_s2000w_client_response_free(resp);
assert_int_equal(h->state, BUSY);
assert_int_equal(status, SANE_STATUS_DEVICE_BUSY);
+ kds_s2000w_option_descriptor_free_option_descriptors();
free_handler(h);
h = NULL;
kds_s2000w_client_response_free(resp);