wmbiff: tidy up socket connexions.
[dockapps.git] / wmcpuload / src / cpu.h
blob5c01d4d07950cee9448948bc54f1f12e8a6b2ffa
1 /*
2 * cpu.h - header file of the module to get cpu usage
4 * Copyright (c) 2001 Seiichi SATO <ssato@sh.rim.or.jp>
6 * licensed under the GPL
7 */
9 #ifndef __CPU_H
10 #define __CPU_H
12 #ifdef IGNORE_PROC
13 #define COMM_LEN 16
14 #endif
15 #define MAX_PROC 5
16 #define MAX_CPU 99
18 typedef struct _cpu_options {
19 int ignore_nice;
20 int cpu_number;
21 } cpu_options;
23 void cpu_init(void);
24 int cpu_get_usage(cpu_options *opts);
26 #endif