3 * Copyright (C) 2015 IPFire Team (www.ipfire.org)
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #include <linux/hdreg.h>
25 #include <sensors/error.h>
26 #include <sensors/sensors.h>
29 #define SERIAL_SIZE 20
31 #define PING_HISTORY_SIZE 1024
32 #define PING_DEFAULT_COUNT 10
33 #define PING_DEFAULT_TIMEOUT 8
39 struct hd_driveid identity
;
43 extern PyTypeObject BlockDeviceType
;
46 extern PyObject
* PyExc_PingError
;
47 extern PyObject
* PyExc_PingAddHostError
;
48 extern PyObject
* PyExc_PingNoReplyError
;
55 double history
[PING_HISTORY_SIZE
];
66 extern PyTypeObject PingType
;
71 const sensors_chip_name
* chip
;
72 const sensors_feature
* feature
;
75 extern PyTypeObject SensorType
;
77 PyObject
* _collecty_sensors_init();
78 PyObject
* _collecty_sensors_cleanup();
79 PyObject
* _collecty_get_detected_sensors(PyObject
* o
, PyObject
* args
);
82 int _collecty_mountpoint_is_virtual(const struct mntent
* mp
);
83 PyObject
* _collecty_get_mountpoints();