diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-09-13 16:37:53 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-09-13 16:43:56 +0200 |
commit | 72a7b882581d685b84d3cde0704029af710fc15e (patch) | |
tree | 5236a718b4bcc94b0e3aba46569da8ae64632e27 /vconsole.h | |
parent | 4e7ddbbe5994297f383149cb85c949b670c697c9 (diff) | |
download | vconsole-72a7b882581d685b84d3cde0704029af710fc15e.tar.gz |
show guest load
Diffstat (limited to 'vconsole.h')
-rw-r--r-- | vconsole.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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); |