1 /* upssched.h - supporting structures */ 2 3 #ifndef NUT_UPSSCHED_H_SEEN 4 #define NUT_UPSSCHED_H_SEEN 1 5 6 #include <parseconf.h> 7 8 #define SERIALIZE_INIT 1 9 #define SERIALIZE_SET 2 10 #define SERIALIZE_WAIT 3 11 12 #ifdef __cplusplus 13 /* *INDENT-OFF* */ 14 extern "C" { 15 /* *INDENT-ON* */ 16 #endif 17 18 /* track client connections */ 19 typedef struct conn_s { 20 int fd; 21 PCONF_CTX_t ctx; 22 struct conn_s *next; 23 } conn_t; 24 25 #ifdef __cplusplus 26 /* *INDENT-OFF* */ 27 } 28 /* *INDENT-ON* */ 29 #endif 30 31 #endif /* NUT_UPSSCHED_H_SEEN */ 32