wmacpi: fix multiple definitions of two global variables.
[dockapps.git] / cputnik / src / cputnik.h
blobd90d450f67f5e8a30c0b3d94d9ed552b75669191
2 /*
3 * Cputnik - a simple cpu and memory monitor
5 * Copyright (C) 2002-2005 pasp and sill
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 #include "docklib.h"
25 #include "master.h"
26 #include "mask.h"
28 #define BUFFER_SIZE 512
29 #define CPU_NAME "cpu0"
30 #define CPU_NAME_LEN 5
32 #define V_WIDTH 54
33 #define V_HEIGHT 41
34 #define V_HEIGHT_MEM 36
35 #define METER_WIDTH 32
37 typedef struct {
38 char name[CPU_NAME_LEN];
39 int his[V_WIDTH+1];
40 int hisaddcnt;
41 long rt_stat;
42 long statlast;
43 long rt_idle;
44 long idlelast;
45 } stat_dev;