2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00

Solved compile problems for g++ programs linked to libsensors

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@722 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard
2000-02-02 20:19:59 +00:00
parent 05415c3309
commit 8bf97bf1c5
3 changed files with 17 additions and 0 deletions

1
TODO
View File

@@ -8,6 +8,7 @@ I2C CODE CHANGES
KERNEL MODULES
==============
* Add string function in sensors.o
* ALL: cleanup_module is void; check also that cleaning up is done
properly, now we know that the module will be unloaded whatever we
do.

View File

@@ -29,6 +29,11 @@
#define SENSORS_ERR_BUS_NAME 7 /* Can't parse bus name */
#define SENSORS_ERR_PARSE 8 /* General parse error */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* This function returns a pointer to a string which describes the error.
errnum may be negative (the corresponding positive error is returned).
You may not modify the result! */
@@ -46,5 +51,8 @@ extern void (*sensors_parse_error) (const char *err, int lineno);
the program). Never let it return! */
extern void (*sensors_fatal_error) (const char *proc, const char *err);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* def LIB_SENSORS_ERROR_H */

View File

@@ -30,6 +30,10 @@
#define SENSORS_CHIP_NAME_BUS_ANY_I2C -3
#define SENSORS_CHIP_NAME_ADDR_ANY -1
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* A chip name is encoded is in this structure */
typedef struct sensors_chip_name {
char *prefix;
@@ -137,4 +141,8 @@ typedef struct sensors_feature_data {
extern const sensors_feature_data *sensors_get_all_features
(sensors_chip_name name, int *nr1,int *nr2);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* def LIB_SENSORS_ERROR_H */