add emacs indentation variables to source files in line with current vim settings
[monky] / src / openbsd.h
1 /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- */
2
3 #ifndef OPENBSD_H_
4 #define OPENBSD_H_
5
6 #include "common.h"
7 #include <sys/param.h>
8 #include <sys/sysctl.h>
9 #include <sys/sensors.h>
10 #include <machine/apmvar.h>
11
12 void update_obsd_sensors(void);
13 void get_obsd_vendor(char *buf, size_t client_buffer_size);
14 void get_obsd_product(char *buf, size_t client_buffer_size);
15
16 #define OBSD_MAX_SENSORS 256
17 struct obsd_sensors_struct {
18        int device;
19        float temp[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
20        unsigned int fan[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
21        float volt[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
22 };
23 struct obsd_sensors_struct obsd_sensors;
24
25 #if defined(i386) || defined(__i386__)
26 typedef struct apm_power_info *apm_info_t;
27 #endif
28
29 #endif /*OPENBSD_H_*/
30 #ifndef OPENBSD_H_
31 #define OPENBSD_H_
32
33 #include "common.h"
34 #include <sys/sysctl.h>
35 #include <sys/sensors.h>
36 #include <machine/apmvar.h>
37
38 void update_obsd_sensors(void);
39 void get_obsd_vendor(char *buf, size_t client_buffer_size);
40 void get_obsd_product(char *buf, size_t client_buffer_size);
41
42 #define OBSD_MAX_SENSORS 256
43 struct obsd_sensors_struct {
44         int device;
45         float temp[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
46         unsigned int fan[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
47         float volt[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
48 };
49 struct obsd_sensors_struct obsd_sensors;
50
51 #if defined(i386) || defined(__i386__)
52 typedef struct apm_power_info *apm_info_t;
53 #endif
54
55 #endif /*OPENBSD_H_*/