From b22e99c26f42ecfe374634c94a7587d13d3199f6 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 14 Feb 2009 00:43:27 +0000 Subject: [PATCH] - 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 --- checkin_notes | 8 ++++++++ lib/gui_rpc_client.h | 2 ++ lib/gui_rpc_client_ops.cpp | 2 ++ 3 files changed, 12 insertions(+) diff --git a/checkin_notes b/checkin_notes index 98b612f36b..977dab0c24 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/lib/gui_rpc_client.h b/lib/gui_rpc_client.h index 43d0c58c9e..9001218aa1 100644 --- a/lib/gui_rpc_client.h +++ b/lib/gui_rpc_client.h @@ -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 diff --git a/lib/gui_rpc_client_ops.cpp b/lib/gui_rpc_client_ops.cpp index ece4cd9605..72b338408b 100644 --- a/lib/gui_rpc_client_ops.cpp +++ b/lib/gui_rpc_client_ops.cpp @@ -900,6 +900,8 @@ int PROJECT_CONFIG::parse(MIOFILE& in) { if (match_tag(buf, "")) return 0; if (parse_int(buf, "", error_num)) continue; if (parse_str(buf, "", name)) continue; + if (parse_str(buf, "", master_url)) continue; + if (parse_int(buf, "", local_revision)) continue; if (parse_int(buf, "", min_passwd_length)) continue; if (parse_bool(buf, "account_manager", account_manager)) continue; if (parse_bool(buf, "uses_username", uses_username)) continue;