source: npl/mediabox/lcdproc_edwin/src/old/stat.h @ c5c522c

gcc484ntopperl-5.22
Last change on this file since c5c522c was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#ifndef MODE_H
2#define MODE_H
3
4/*
5  Don't use this yet!  It's barely even started!
6 */
7
8int stat_init();
9void stat_close();
10
11typedef struct status
12{
13  // should hold persistent data somehow...
14//  data_type data;
15 
16  // Takes position onscreen (x,y), and
17  // format (i=int, f=float, h=horz bar, v=vert bar, 2=24-hour, 1=12-hour,
18  //         x=xload-style, etc...)
19  // Each stat will only draw valid formats...
20  // size is max size (graphs) or num digits, etc...  (0 is "max" size)
21  // reread specifies to re-grab the value first.
22  void (*draw)(int x, int y, int size, char format, int reread);
23  void (*read)(int reread);
24
25  // Should also maybe be able to return the data?
26//  return_type (*get)();
27 
28};
29
30
31extern status cpu;
32extern status cpu_nice;
33extern status cpu_idle;
34extern status cpu_sys;
35extern status cpu_usr;
36
37extern status mem_free;
38extern status mem_total;
39extern status swap_free;
40extern status swap_total;
41
42extern status load;
43
44extern status date;
45extern status uptime;
46
47extern status os_ver;
48
49extern status disk_activity;
50extern status disk_free;
51extern status disk_total;
52
53extern status net_sent;
54extern status net_recv;
55extern status net_rate;
56
57
58#endif
Note: See TracBrowser for help on using the repository browser.