mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-04 08:15:13 +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:
1
TODO
1
TODO
@@ -8,6 +8,7 @@ I2C CODE CHANGES
|
|||||||
KERNEL MODULES
|
KERNEL MODULES
|
||||||
==============
|
==============
|
||||||
|
|
||||||
|
* Add string function in sensors.o
|
||||||
* ALL: cleanup_module is void; check also that cleaning up is done
|
* ALL: cleanup_module is void; check also that cleaning up is done
|
||||||
properly, now we know that the module will be unloaded whatever we
|
properly, now we know that the module will be unloaded whatever we
|
||||||
do.
|
do.
|
||||||
|
@@ -29,6 +29,11 @@
|
|||||||
#define SENSORS_ERR_BUS_NAME 7 /* Can't parse bus name */
|
#define SENSORS_ERR_BUS_NAME 7 /* Can't parse bus name */
|
||||||
#define SENSORS_ERR_PARSE 8 /* General parse error */
|
#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.
|
/* This function returns a pointer to a string which describes the error.
|
||||||
errnum may be negative (the corresponding positive error is returned).
|
errnum may be negative (the corresponding positive error is returned).
|
||||||
You may not modify the result! */
|
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! */
|
the program). Never let it return! */
|
||||||
extern void (*sensors_fatal_error) (const char *proc, const char *err);
|
extern void (*sensors_fatal_error) (const char *proc, const char *err);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#endif /* def LIB_SENSORS_ERROR_H */
|
#endif /* def LIB_SENSORS_ERROR_H */
|
||||||
|
@@ -30,6 +30,10 @@
|
|||||||
#define SENSORS_CHIP_NAME_BUS_ANY_I2C -3
|
#define SENSORS_CHIP_NAME_BUS_ANY_I2C -3
|
||||||
#define SENSORS_CHIP_NAME_ADDR_ANY -1
|
#define SENSORS_CHIP_NAME_ADDR_ANY -1
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
/* A chip name is encoded is in this structure */
|
/* A chip name is encoded is in this structure */
|
||||||
typedef struct sensors_chip_name {
|
typedef struct sensors_chip_name {
|
||||||
char *prefix;
|
char *prefix;
|
||||||
@@ -137,4 +141,8 @@ typedef struct sensors_feature_data {
|
|||||||
extern const sensors_feature_data *sensors_get_all_features
|
extern const sensors_feature_data *sensors_get_all_features
|
||||||
(sensors_chip_name name, int *nr1,int *nr2);
|
(sensors_chip_name name, int *nr1,int *nr2);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#endif /* def LIB_SENSORS_ERROR_H */
|
#endif /* def LIB_SENSORS_ERROR_H */
|
||||||
|
Reference in New Issue
Block a user