aboutsummaryrefslogtreecommitdiffstats
path: root/vconsole.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-09-13 16:37:53 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-09-13 16:43:56 +0200
commit72a7b882581d685b84d3cde0704029af710fc15e (patch)
tree5236a718b4bcc94b0e3aba46569da8ae64632e27 /vconsole.h
parent4e7ddbbe5994297f383149cb85c949b670c697c9 (diff)
downloadvconsole-72a7b882581d685b84d3cde0704029af710fc15e.tar.gz
show guest load
Diffstat (limited to 'vconsole.h')
-rw-r--r--vconsole.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/vconsole.h b/vconsole.h
index 54741fe..bf55ac6 100644
--- a/vconsole.h
+++ b/vconsole.h
@@ -5,8 +5,10 @@
#include <errno.h>
#include <fcntl.h>
#include <assert.h>
+#include <inttypes.h>
#include <sys/stat.h>
+#include <sys/time.h>
#include <gtk/gtk.h>
#include <vte/vte.h>
@@ -27,6 +29,7 @@ enum vconsole_cols {
DPTR_COL, // vconsole_domain
ID_COL,
STATE_COL,
+ LOAD_COL,
/* beautify */
FOREGROUND_COL,
@@ -78,12 +81,19 @@ struct vconsole_connect *connect_init(struct vconsole_window *win,
struct vconsole_domain {
struct vconsole_connect *conn;
char uuid[VIR_UUID_STRING_BUFLEN];
+ char idstr[16];
+ const char *name;
GtkWidget *vbox, *vte, *status;
virStreamPtr stream;
virDomainInfo info;
gboolean saved;
+ struct timeval ts;
+ struct timeval last_ts;
+ virDomainInfo last_info;
+ int load;
+
FILE *logfp;
char *logname;
};
@@ -103,3 +113,5 @@ void domain_configure_all_vtes(struct vconsole_window *win);
void domain_configure_all_logging(struct vconsole_window *win);
struct vconsole_domain *domain_find_current_tab(struct vconsole_window *win);
void domain_close_current_tab(struct vconsole_window *win);
+
+void domain_update_all(struct vconsole_window *win);