]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change profile type
authorBastian Dehn <hhaalo@arcor.de>
Sat, 18 Oct 2025 08:19:08 +0000 (10:19 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 18 Oct 2025 08:19:08 +0000 (10:19 +0200)
src/kds_s2000w_option_descriptors.c
src/kds_s2000w_option_descriptors.h

index 0bb90da9fa879455a8fc9950d7d745cddf4db069..b4cc3e24298224ccf74a0bb820e7486ea3db890e 100644 (file)
@@ -1753,7 +1753,7 @@ SANE_Status _kds_s2000w_option_descriptors_init_full_profile()
 /*******************************************************************************
  * public methods
  ******************************************************************************/
-SANE_Status kds_s2000w_option_descriptors_init(uint8_t profile)
+SANE_Status kds_s2000w_option_descriptors_init(profile_t profile)
 {
        kds_s2000w_debug_printf(ALL, "kds_s2000w_option_descriptors_init");
 
index 3732d7899f70543855963aef0468dde1fb7301e6..615ebb09502537e21fff6157f0ace3bde02a3a64 100644 (file)
 #define DOCUMENT_FEEDER_TIMEOUT "DocumentFeederTimeout"
 #define DOCUMENT_FEEDER_TIMEOUT_RESPONSE "DocumentFeederTimeoutResponse"
 
-enum {
+typedef enum {
        PROFILE_MIN,
        PROFILE_230802_V1_0_36,
        PROFILE_FULL
-};
+} profile_t;
 
 typedef struct {
        const char* config_name;
        SANE_Option_Descriptor* descriptor;
 } option_descriptor_t;
 
-SANE_Status kds_s2000w_option_descriptors_init(uint8_t profile);
+SANE_Status kds_s2000w_option_descriptors_init(profile_t profile);
 void kds_s2000w_option_descriptors_free();
 
 uint8_t kds_s2000w_option_descriptors_get_max_option_count();