X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=internal.h;fp=internal.h;h=8f5ec0128a9f4c1e9bf273d513d66600578a5487;hb=432ef642869fbbac2d6f6d111d80137cc5e7b119;hp=77b39073949e8c99989864489474b37340a060d0;hpb=13a89a846b79145209ac68fcc6295156699e55ea;p=ovirt-viewer.git diff --git a/internal.h b/internal.h index 77b3907..8f5ec01 100644 --- a/internal.h +++ b/internal.h @@ -103,13 +103,18 @@ struct vm { char *description; int hostid; int id; + int vnc_port; + + /* Only description, hostid, id and vnc_port fields 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. */ }; @@ -169,4 +174,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 has updated the vm list. */ +extern gboolean main_vmlist_updated (gpointer); + #endif /* OVIRT_VIEWER_INTERNAL_H */