diff options
Diffstat (limited to 'sysinfo.h')
-rw-r--r-- | sysinfo.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/sysinfo.h b/sysinfo.h new file mode 100644 index 0000000..fdc3325 --- /dev/null +++ b/sysinfo.h @@ -0,0 +1,39 @@ +/* + * sysinfo.h: A plugin for the Video Disk Recorder + * + * See the README file for copyright information and how to reach the author. + * + * Date: 03.06.07 + * + */ + +#ifndef __SYSINFO_H +#define __SYSINFO_H + +#include <common.h> + +//*************************************************************************** +// Sysinfo +//*************************************************************************** + +class Sysinfo +{ + public: + + // interface + + static int init(); + static int exit(); + static int cpuLoad(); + static int memInfoMb(unsigned long& total, unsigned long& used, + unsigned long& free, unsigned long& cached); + + private: + + static double lastIdle; + static double lastTotal; + static int initialized; +}; + +//*************************************************************************** +#endif // __SYSINFO_H |