X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fopenbsd.h;h=a60aeadec0d2a01d7468fa308bd9336b2cdcfceb;hb=da4f602694c3083a131b2f58a502c25a7febb76e;hp=32aa8f4e835d114c740169f2013a09d1fee7e66b;hpb=09ac517343b8d19e5ffdbac0089c30121f6c550e;p=monky diff --git a/src/openbsd.h b/src/openbsd.h index 32aa8f4..a60aead 100644 --- a/src/openbsd.h +++ b/src/openbsd.h @@ -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 #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_*/