git.annexia.org
/
ovirt-viewer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changes to establish connection to ovirt server on vm's forward_vnc_port
[ovirt-viewer.git]
/
internal.h
diff --git
a/internal.h
b/internal.h
index
77b3907
..
950fd05
100644
(file)
--- a/
internal.h
+++ b/
internal.h
@@
-103,13
+103,20
@@
struct vm {
char *description;
int hostid;
int id;
char *description;
int hostid;
int id;
+ int vnc_port;
+ int forward_vnc_port;
+ char *uuid; /* Printable UUID. */
+
+ /* Only the fields above this point are required. The remainder may
+ * be NULL / -1 to indicate they were missing in the data we got
+ * back from the WUI.
+ */
+
long mem_allocated; /* Kbytes */
long mem_used; /* Kbytes */
int vcpus_allocated;
int vcpus_used;
char *state;
long mem_allocated; /* Kbytes */
long mem_used; /* Kbytes */
int vcpus_allocated;
int vcpus_used;
char *state;
- char *uuid; /* Printable UUID. */
- int vnc_port;
char *mac_addr; /* Printable MAC addr. */
};
char *mac_addr; /* Printable MAC addr. */
};
@@
-169,4
+176,7
@@
extern gboolean main_login_error (gpointer str);
/* The WUI thread reports a general status error. */
extern gboolean main_status_error (gpointer str);
/* The WUI thread reports a general status error. */
extern gboolean main_status_error (gpointer str);
+/* The WUI thread has updated the vm list. */
+extern gboolean main_vmlist_updated (gpointer);
+
#endif /* OVIRT_VIEWER_INTERNAL_H */
#endif /* OVIRT_VIEWER_INTERNAL_H */