return size;
}
-bool psensor_list_contains_type(struct psensor **sensors, unsigned int type)
-{
- if (!sensors)
- return false;
-
- while (*sensors) {
- if (((*sensors)->type & type) == type)
- return true;
- sensors++;
- }
-
- return false;
-}
-
struct psensor **psensor_list_add(struct psensor **sensors,
struct psensor *sensor)
{