- GUI RPC: add master_url and local_revision to PROJECT_CONFIG struct.

The former will allow the Manager to verify project URLs

svn path=/trunk/boinc/; revision=17271
This commit is contained in:
David Anderson 2009-02-14 00:43:27 +00:00
parent 1d43d654c6
commit b22e99c26f
3 changed files with 12 additions and 0 deletions

View File

@ -1587,3 +1587,11 @@ David 13 Feb 2009
lib/
prefs.cpp,h
David 13 Feb 2009
- GUI RPC: add master_url and local_revision to PROJECT_CONFIG struct.
The former will allow the Manager to verify project URLs
lib/
gui_rpc_client_ops.cpp
gui_rpc_client.h

View File

@ -475,6 +475,8 @@ struct PROJECT_INIT_STATUS {
struct PROJECT_CONFIG {
int error_num;
std::string name;
std::string master_url;
int local_revision; // SVN changeset# of server software
int min_passwd_length;
bool account_manager;
bool uses_username; // true for WCG

View File

@ -900,6 +900,8 @@ int PROJECT_CONFIG::parse(MIOFILE& in) {
if (match_tag(buf, "</project_config>")) return 0;
if (parse_int(buf, "<error_num>", error_num)) continue;
if (parse_str(buf, "<name>", name)) continue;
if (parse_str(buf, "<master_url>", master_url)) continue;
if (parse_int(buf, "<local_revision>", local_revision)) continue;
if (parse_int(buf, "<min_passwd_length>", min_passwd_length)) continue;
if (parse_bool(buf, "account_manager", account_manager)) continue;
if (parse_bool(buf, "uses_username", uses_username)) continue;