Split conky.h into several smaller header files
[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_*/