char *description;
int hostid;
int id;
+ int vnc_port;
+ int forward_vnc_port;
+ char *uuid; /* Printable UUID. */
+ char *state;
+
+ /* 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;
- char *uuid; /* Printable UUID. */
- int vnc_port;
char *mac_addr; /* Printable MAC addr. */
};
*/
extern gboolean wui_thread_is_busy (void);
+/* Returns true if the main vm list contains a
+ * running vm w/ the same name as specified one
+ */
+extern gboolean main_vmlist_has_running_vm(struct vm*);
+
/* Callbacks from the WUI thread to the main thread. The WUI thread
* adds these to the Glib main loop using g_idle_add, which means they
* actually get executed in the context of the main thread.
/* 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 */