mirror of https://github.com/BOINC/boinc.git
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:
parent
282161831d
commit
9f2cdee695
|
@ -170,6 +170,7 @@ struct PROJECT {
|
||||||
char venue[256];
|
char venue[256];
|
||||||
int njobs_success;
|
int njobs_success;
|
||||||
int njobs_error;
|
int njobs_error;
|
||||||
|
char cross_project_id[64];
|
||||||
|
|
||||||
// NOTE: if you add any data items above,
|
// NOTE: if you add any data items above,
|
||||||
// update parse(), and clear() to include them!!
|
// update parse(), and clear() to include them!!
|
||||||
|
|
|
@ -459,6 +459,7 @@ int PROJECT::parse(XML_PARSER& xp) {
|
||||||
if (xp.parse_str("venue", venue, sizeof(venue))) continue;
|
if (xp.parse_str("venue", venue, sizeof(venue))) continue;
|
||||||
if (xp.parse_int("njobs_success", njobs_success)) continue;
|
if (xp.parse_int("njobs_success", njobs_success)) continue;
|
||||||
if (xp.parse_int("njobs_error", njobs_error)) 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;
|
return ERR_XML_PARSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,6 +108,7 @@ void PROJECT::print() {
|
||||||
}
|
}
|
||||||
printf(" jobs succeeded: %d\n", njobs_success);
|
printf(" jobs succeeded: %d\n", njobs_success);
|
||||||
printf(" jobs failed: %d\n", njobs_error);
|
printf(" jobs failed: %d\n", njobs_error);
|
||||||
|
printf(" cross-project ID: %s\n", cross_project_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void APP::print() {
|
void APP::print() {
|
||||||
|
|
Loading…
Reference in New Issue