~ubuntu-branches/ubuntu/karmic/wmcpuload/karmic

« back to all changes in this revision

Viewing changes to src/cpu.h

  • Committer: Bazaar Package Importer
  • Author(s): Christian Aichinger
  • Date: 2005-02-13 18:42:41 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050213184241-yk2o743d8rkp23t9
Tags: 1.0.1-2
* New Maintainer
* Added proper Linux 2.6 support, thanks to Peter Colberg for the patch.
  (Closes: #238684)
* debian/control: Standards-Version to 3.6.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: cpu.h,v 1.1.1.1 2002/10/14 09:31:17 sch Exp $ */
 
2
 
1
3
/*
2
 
 * cpu.h - module header file to get cpu usage
 
4
 * cpu.h - header file of the module to get cpu usage
3
5
 *
4
6
 * Copyright (c) 2001 Seiichi SATO <ssato@sh.rim.or.jp>
5
7
 *
6
8
 * licensed under the GPL
7
9
 */
8
10
 
 
11
#ifndef __CPU_H
 
12
#define __CPU_H
 
13
 
9
14
#ifdef IGNORE_PROC
10
15
#define COMM_LEN 16
11
16
#endif
12
17
#define MAX_PROC 5
13
18
 
14
19
 
15
 
struct cpu_options {
 
20
typedef struct _cpu_options {
16
21
    int ignore_nice;
17
22
    int cpu_number;
18
23
    char *ignore_proc_list[MAX_PROC];
19
24
    int ignore_procs;
20
 
};
 
25
} cpu_options;
21
26
 
22
27
void cpu_init(void);
23
 
int cpu_get_usage(struct cpu_options *opts);
 
28
int cpu_get_usage(cpu_options *opts);
 
29
 
 
30
#endif