]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change device state to int
authorBastian Dehn <hhaalo@arcor.de>
Sun, 18 Feb 2024 10:02:53 +0000 (11:02 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 18 Feb 2024 10:02:53 +0000 (11:02 +0100)
src/kds_s2000w_handler.h

index ab2ba56ca2f5ca512a427f0fbfd9ec535f6ea884..dec9f433127d9c298631f753141255af4c0fe975 100644 (file)
@@ -1,10 +1,10 @@
 #ifndef KDS_S2000W_HANDLER_H
 #define KDS_S2000W_HANDLER_H
-typedef enum {
+enum {
        NOTCONNECTED,
        OPENED,
        BUSY
-} device_state;
+};
 
 enum {
        RELOAD_OPTIONS = 2,
@@ -26,7 +26,7 @@ typedef struct {
 
 typedef struct {
        long sessionid;
-       device_state state;
+       int state;
 } handler;
 
 void kds_s2000w_handler_open(const char* devicename, void** handle);