GUI RPC: add cross_project_id to PROJECT, for BoincTasks

This was already in the XML written by the client; no client change needed.
This commit is contained in:
David Anderson 2014-07-13 17:44:38 -07:00
parent 282161831d
commit 9f2cdee695
3 changed files with 3 additions and 0 deletions

View File

@ -170,6 +170,7 @@ struct PROJECT {
char venue[256];
int njobs_success;
int njobs_error;
char cross_project_id[64];
// NOTE: if you add any data items above,
// update parse(), and clear() to include them!!

View File

@ -459,6 +459,7 @@ int PROJECT::parse(XML_PARSER& xp) {
if (xp.parse_str("venue", venue, sizeof(venue))) continue;
if (xp.parse_int("njobs_success", njobs_success)) continue;
if (xp.parse_int("njobs_error", njobs_error)) continue;
if (xp.parse_str("cross_project_id", cross_project_id, sizeof(cross_project_id))) continue;
}
return ERR_XML_PARSE;
}

View File

@ -108,6 +108,7 @@ void PROJECT::print() {
}
printf(" jobs succeeded: %d\n", njobs_success);
printf(" jobs failed: %d\n", njobs_error);
printf(" cross-project ID: %s\n", cross_project_id);
}
void APP::print() {