New lcdproc client by Thomas Runge. Works on Solaris, Linux, NetBSD, OpenBSD and FreeBSD.
This commit is contained in:
1 parent
56db57f518
commit
1372677298
30 files changed
+2921
-2275
No files matched your search
@@ -0,0 +1,42 @@
|
||||
|
||||
#ifndef _lcdproc_machine_h_
|
||||
#define _lcdproc_machine_h_
|
||||
|
||||
#include "shared/LL.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
unsigned long total, user, system, nice, idle;
|
||||
} load_type;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char dev[256], type[64], mpoint[256];
|
||||
long bsize, blocks, bfree, files, ffree;
|
||||
} mounts_type;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int total, cache, buffers, free, shared;
|
||||
} meminfo_type;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char name[16];
|
||||
int totl;
|
||||
int number;
|
||||
} procinfo_type;
|
||||
|
||||
int machine_init();
|
||||
int machine_close();
|
||||
|
||||
int machine_get_battstat(int *acstat, int *battflag, int *percent);
|
||||
int machine_get_fs(mounts_type fs[], int *cnt);
|
||||
int machine_get_load(load_type *cur_load);
|
||||
int machine_get_loadavg(double *load);
|
||||
int machine_get_meminfo(meminfo_type *result);
|
||||
int machine_get_procs(LinkedList *procs);
|
||||
int machine_get_smpload(load_type *result, int *numcpus);
|
||||
int machine_get_uptime(double *up, double *idle);
|
||||
|
||||
#endif /* _lcdproc_machine_h_ */
|
||||
Reference in new issue
Block a user