]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change well known page width height option
authorBastian Dehn <hhaalo@arcor.de>
Sun, 16 Feb 2025 20:39:29 +0000 (21:39 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 16 Feb 2025 20:39:29 +0000 (21:39 +0100)
src/kds_s2000w_option_descriptors.c
tests/kds_s2000w_option_descriptor_tests.c

index cbea3f34a69b14e5b6cdccfcf6353c063ef2fc1c..494c37083b8fad5dc908eccbae6fff88641fa1d9 100644 (file)
@@ -999,9 +999,9 @@ SANE_Option_Descriptor _kds_s2000w_option_descriptor_image_width()
        constraint->quant = 1;
 
        SANE_Option_Descriptor descriptor = {
-               "image-width",
-               "Image width",
-               "Image width",
+               SANE_NAME_PAGE_WIDTH,
+               SANE_TITLE_PAGE_WIDTH,
+               SANE_DESC_PAGE_WIDTH,
                SANE_TYPE_INT,
                SANE_UNIT_NONE,
                sizeof(SANE_Int),
@@ -1023,9 +1023,9 @@ SANE_Option_Descriptor _kds_s2000w_option_descriptor_image_height()
        constraint->quant = 1;
 
        SANE_Option_Descriptor descriptor = {
-               "image-height",
-               "Image height",
-               "Image height",
+               SANE_NAME_PAGE_HEIGHT,
+               SANE_TITLE_PAGE_HEIGHT,
+               SANE_DESC_PAGE_HEIGHT,
                SANE_TYPE_INT,
                SANE_UNIT_NONE,
                sizeof(SANE_Int),
index 86167d2b5c86c1eb833595b4a60f90544aa47350..4579f1c8813e209e1ad0458f851d0dcde386768d 100644 (file)
@@ -208,9 +208,9 @@ void kds_s2000w_option_get_descriptor_eleven_test()
 {
        SANE_Option_Descriptor* option = kds_s2000w_option_descriptors_get(11);
 
-       assert_string_equal("image-width", option->name);
-       assert_string_equal("Image width", option->title);
-       assert_string_equal("Image width", option->desc);
+       assert_string_equal(SANE_NAME_PAGE_WIDTH, option->name);
+       assert_string_equal(SANE_TITLE_PAGE_WIDTH, option->title);
+       assert_string_equal(SANE_DESC_PAGE_WIDTH, option->desc);
        assert_int_equal(SANE_TYPE_INT, option->type);
        assert_int_equal(SANE_UNIT_NONE, option->unit);
        assert_int_equal(sizeof(SANE_Int), option->size);
@@ -225,9 +225,9 @@ void kds_s2000w_option_get_descriptor_twelve_test()
 {
        SANE_Option_Descriptor* option = kds_s2000w_option_descriptors_get(12);
 
-       assert_string_equal("image-height", option->name);
-       assert_string_equal("Image height", option->title);
-       assert_string_equal("Image height", option->desc);
+       assert_string_equal(SANE_NAME_PAGE_HEIGHT, option->name);
+       assert_string_equal(SANE_TITLE_PAGE_HEIGHT, option->title);
+       assert_string_equal(SANE_DESC_PAGE_HEIGHT, option->desc);
        assert_int_equal(SANE_TYPE_INT, option->type);
        assert_int_equal(SANE_UNIT_NONE, option->unit);
        assert_int_equal(sizeof(SANE_Int), option->size);