diff options
author | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 14:38:30 -0500 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 14:38:30 -0500 |
commit | 8c1612d32c5682a86216adb8c8d11ce715fe5475 (patch) | |
tree | 2a51954d577955c8ad19e517e4c7b6b8972982e4 /computer.h | |
parent | 0864b0a8e6f0b0983c3536931cfbad1414137d6b (diff) |
Import Upstream version 0.3.6
Diffstat (limited to 'computer.h')
-rw-r--r-- | computer.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/computer.h b/computer.h new file mode 100644 index 00000000..60579689 --- /dev/null +++ b/computer.h @@ -0,0 +1,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 |