Delay checking for want_apcupsd.
[monky] / src / openbsd.h
1 #ifndef OPENBSD_H_
2 #define OPENBSD_H_
3
4 #include "common.h"
5 #include <sys/sysctl.h>
6 #include <sys/sensors.h>
7 #include <machine/apmvar.h>
8
9 void update_obsd_sensors(void);
10 void get_obsd_vendor(char *buf, size_t client_buffer_size);
11 void get_obsd_product(char *buf, size_t client_buffer_size);
12
13 #define OBSD_MAX_SENSORS 256
14 struct obsd_sensors_struct {
15        int device;
16        float temp[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
17        unsigned int fan[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
18        float volt[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
19 };
20 struct obsd_sensors_struct obsd_sensors;
21
22 #if defined(i386) || defined(__i386__)
23 typedef struct apm_power_info *apm_info_t;
24 #endif
25
26 #endif /*OPENBSD_H_*/
27 #ifndef OPENBSD_H_
28 #define OPENBSD_H_
29
30 #include "common.h"
31 #include <sys/sysctl.h>
32 #include <sys/sensors.h>
33 #include <machine/apmvar.h>
34
35 void update_obsd_sensors(void);
36 void get_obsd_vendor(char *buf, size_t client_buffer_size);
37 void get_obsd_product(char *buf, size_t client_buffer_size);
38
39 #define OBSD_MAX_SENSORS 256
40 struct obsd_sensors_struct {
41         int device;
42         float temp[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
43         unsigned int fan[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
44         float volt[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
45 };
46 struct obsd_sensors_struct obsd_sensors;
47
48 #if defined(i386) || defined(__i386__)
49 typedef struct apm_power_info *apm_info_t;
50 #endif
51
52 #endif /*OPENBSD_H_*/