nut-debian/clients/upssched.h

32 lines
496 B
C
Raw Normal View History

2010-03-26 01:20:59 +02:00
/* upssched.h - supporting structures */
2022-07-10 10:23:45 +03:00
#ifndef NUT_UPSSCHED_H_SEEN
#define NUT_UPSSCHED_H_SEEN 1
2010-03-26 01:20:59 +02:00
#include <parseconf.h>
#define SERIALIZE_INIT 1
#define SERIALIZE_SET 2
#define SERIALIZE_WAIT 3
2013-11-24 17:00:12 +02:00
#ifdef __cplusplus
/* *INDENT-OFF* */
extern "C" {
/* *INDENT-ON* */
#endif
2010-03-26 01:20:59 +02:00
/* track client connections */
2011-01-26 11:35:08 +02:00
typedef struct conn_s {
2010-03-26 01:20:59 +02:00
int fd;
PCONF_CTX_t ctx;
2011-01-26 11:35:08 +02:00
struct conn_s *next;
} conn_t;
2013-11-24 17:00:12 +02:00
#ifdef __cplusplus
/* *INDENT-OFF* */
}
/* *INDENT-ON* */
#endif
2022-07-10 10:23:45 +03:00
#endif /* NUT_UPSSCHED_H_SEEN */