blob: 60579689e3bd8c5be4e2c50253583d4672a55bb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#ifndef __COMPUTER_H__
#define __COMPUTER_H__
#include <glib.h>
#define DB_PREFIX "/etc/"
typedef struct _ComputerInfo ComputerInfo;
typedef struct _MemoryInfo MemoryInfo;
struct _MemoryInfo {
gint total;
gint used;
gint cached;
gdouble ratio;
};
struct _ComputerInfo {
gchar *distrocode;
gchar *distroinfo;
gchar *kernel;
gchar *hostname;
gint procno;
gchar *processor;
gint frequency;
gint family, model, stepping;
gint cachel2;
gint bogomips;
};
ComputerInfo *computer_get_info(void);
MemoryInfo *memory_get_info(void);
GtkWidget *os_get_widget(MainWindow *mainwindow);
GtkWidget *memory_get_widget(MainWindow *mainwindow);
GtkWidget *processor_get_widget(void);
gboolean uptime_update(gpointer data);
gboolean memory_update(gpointer data);
#endif
|