X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fopenbsd.h;h=a60aeadec0d2a01d7468fa308bd9336b2cdcfceb;hb=da4f602694c3083a131b2f58a502c25a7febb76e;hp=2ee32cb6d31ba7521dccfa09897834bfa4be31b5;hpb=81c691d15afc0ccffd3da3a480478f0a66bb60f4;p=monky diff --git a/src/openbsd.h b/src/openbsd.h index 2ee32cb..a60aead 100644 --- a/src/openbsd.h +++ b/src/openbsd.h @@ -9,47 +9,18 @@ #include #include -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 -#include -#include - -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_*/