updated version #, imlib2 fixed, i forgot when the window size changes we totally...
[monky] / src / openbsd.h
index 32aa8f4..a60aead 100644 (file)
@@ -1,3 +1,5 @@
+/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- */
+
 #ifndef OPENBSD_H_
 #define OPENBSD_H_
 
@@ -7,47 +9,18 @@
 #include <sys/sensors.h>
 #include <machine/apmvar.h>
 
-void update_obsd_sensors(void);
+void parse_obsd_sensor(struct text_object *, const char *);
+void print_obsd_sensors_temp(struct text_object *, char *, int);
+void print_obsd_sensors_fan(struct text_object *, char *, int);
+void print_obsd_sensors_volt(struct text_object *, char *, int);
 void get_obsd_vendor(char *buf, size_t client_buffer_size);
 void get_obsd_product(char *buf, size_t client_buffer_size);
 
-#define OBSD_MAX_SENSORS 256
-struct obsd_sensors_struct {
-       int device;
-       float temp[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
-       unsigned int fan[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
-       float volt[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
-};
-struct obsd_sensors_struct obsd_sensors;
-
 #if defined(i386) || defined(__i386__)
 typedef struct apm_power_info *apm_info_t;
 #endif
 
-#endif /*OPENBSD_H_*/
-#ifndef OPENBSD_H_
-#define OPENBSD_H_
-
-#include "common.h"
-#include <sys/sysctl.h>
-#include <sys/sensors.h>
-#include <machine/apmvar.h>
-
-void update_obsd_sensors(void);
-void get_obsd_vendor(char *buf, size_t client_buffer_size);
-void get_obsd_product(char *buf, size_t client_buffer_size);
-
-#define OBSD_MAX_SENSORS 256
-struct obsd_sensors_struct {
-       int device;
-       float temp[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
-       unsigned int fan[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
-       float volt[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
-};
-struct obsd_sensors_struct obsd_sensors;
-
-#if defined(i386) || defined(__i386__)
-typedef struct apm_power_info *apm_info_t;
-#endif
+int get_entropy_avail(unsigned int *);
+int get_entropy_poolsize(unsigned int *);
 
 #endif /*OPENBSD_H_*/