fixed sensors_find API
This commit is contained in:
parent
00e8164e58
commit
079db2af55
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* @(#)$Id: sensors.c,v 1.4 2010/01/14 13:55:21 nifi Exp $
|
* @(#)$Id: sensors.c,v 1.5 2010/01/14 20:04:38 nifi Exp $
|
||||||
*/
|
*/
|
||||||
/* exeperimental code, will be renamed to sensors.c when done */
|
/* exeperimental code, will be renamed to sensors.c when done */
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ sensors_changed(const struct sensors_sensor *s)
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
struct sensors_sensor *
|
struct sensors_sensor *
|
||||||
sensors_find(char *prefix)
|
sensors_find(const char *prefix)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
unsigned short len;
|
unsigned short len;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* @(#)$Id: sensors.h,v 1.6 2010/01/14 15:33:27 joxe Exp $
|
* @(#)$Id: sensors.h,v 1.7 2010/01/14 20:04:38 nifi Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __SENSORS_H__
|
#ifndef __SENSORS_H__
|
||||||
|
@ -60,7 +60,7 @@ struct sensors_sensor {
|
||||||
int (* status) (int type);
|
int (* status) (int type);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct sensors_sensor *sensors_find(char *type);
|
struct sensors_sensor *sensors_find(const char *type);
|
||||||
struct sensors_sensor *sensors_next(const struct sensors_sensor *s);
|
struct sensors_sensor *sensors_next(const struct sensors_sensor *s);
|
||||||
struct sensors_sensor *sensors_first(void);
|
struct sensors_sensor *sensors_first(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue