forked from enlightenment/enlightenment
tempget:
* small cleanup * allow compilation on opensolaris This modules does not work on opensolaris. I don't know that stuff, so I have no idea of what to do to fix that SVN revision: 44522
This commit is contained in:
parent
18db67b1fb
commit
85b159255d
|
@ -4,6 +4,8 @@
|
||||||
#ifndef E_MOD_MAIN_H
|
#ifndef E_MOD_MAIN_H
|
||||||
#define E_MOD_MAIN_H
|
#define E_MOD_MAIN_H
|
||||||
|
|
||||||
|
#include "e_mod_main_private.h"
|
||||||
|
|
||||||
typedef struct _Config Config;
|
typedef struct _Config Config;
|
||||||
typedef struct _Config_Face Config_Face;
|
typedef struct _Config_Face Config_Face;
|
||||||
|
|
||||||
|
@ -13,19 +15,6 @@ typedef enum _Unit
|
||||||
FAHRENHEIT
|
FAHRENHEIT
|
||||||
} Unit;
|
} Unit;
|
||||||
|
|
||||||
typedef enum _Sensor_Type
|
|
||||||
{
|
|
||||||
SENSOR_TYPE_NONE,
|
|
||||||
SENSOR_TYPE_FREEBSD,
|
|
||||||
SENSOR_TYPE_OMNIBOOK,
|
|
||||||
SENSOR_TYPE_LINUX_MACMINI,
|
|
||||||
SENSOR_TYPE_LINUX_I2C,
|
|
||||||
SENSOR_TYPE_LINUX_ACPI,
|
|
||||||
SENSOR_TYPE_LINUX_PCI,
|
|
||||||
SENSOR_TYPE_LINUX_PBOOK,
|
|
||||||
SENSOR_TYPE_LINUX_INTELCORETEMP
|
|
||||||
} Sensor_Type;
|
|
||||||
|
|
||||||
struct _Config_Face
|
struct _Config_Face
|
||||||
{
|
{
|
||||||
const char *id;
|
const char *id;
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
/*
|
||||||
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
||||||
|
*/
|
||||||
|
#ifndef E_MOD_MAIN_PRIVATE_H
|
||||||
|
#define E_MOD_MAIN_PRIVATE_H
|
||||||
|
|
||||||
|
typedef enum _Sensor_Type
|
||||||
|
{
|
||||||
|
SENSOR_TYPE_NONE,
|
||||||
|
SENSOR_TYPE_FREEBSD,
|
||||||
|
SENSOR_TYPE_OMNIBOOK,
|
||||||
|
SENSOR_TYPE_LINUX_MACMINI,
|
||||||
|
SENSOR_TYPE_LINUX_I2C,
|
||||||
|
SENSOR_TYPE_LINUX_ACPI,
|
||||||
|
SENSOR_TYPE_LINUX_PCI,
|
||||||
|
SENSOR_TYPE_LINUX_PBOOK,
|
||||||
|
SENSOR_TYPE_LINUX_INTELCORETEMP
|
||||||
|
} Sensor_Type;
|
||||||
|
|
||||||
|
#endif
|
|
@ -1,14 +1,23 @@
|
||||||
/*
|
/*
|
||||||
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
||||||
*/
|
*/
|
||||||
#include "e.h"
|
|
||||||
#include "e_mod_main.h"
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <limits.h>
|
||||||
|
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <Ecore.h>
|
||||||
|
#include <Ecore_File.h>
|
||||||
|
|
||||||
|
#include "e_mod_main_private.h"
|
||||||
|
|
||||||
|
|
||||||
static int sensor_type = SENSOR_TYPE_NONE;
|
static int sensor_type = SENSOR_TYPE_NONE;
|
||||||
static char *sensor_name = NULL;
|
static char *sensor_name = NULL;
|
||||||
static int poll_interval = 32;
|
static int poll_interval = 32;
|
||||||
|
|
Loading…
Reference in New Issue