mirror of https://github.com/BOINC/boinc.git
- GUI RPC: fix some XML errors (missing / in single-tag elements)
Fixes #524 (from Nicolas) svn path=/trunk/boinc/; revision=14682
This commit is contained in:
parent
6b74075469
commit
aab1e97f7d
|
@ -1177,3 +1177,12 @@ David Feb 5 2008
|
|||
MainDocument.cpp,h
|
||||
lib/
|
||||
gui_rpc_client.C,h
|
||||
|
||||
David Feb 5 2008
|
||||
- GUI RPC: fix some XML errors (missing / in single-tag elements)
|
||||
Fixes #524 (from Nicolas)
|
||||
|
||||
client/
|
||||
gui_rpc_server_ops.C
|
||||
lib/
|
||||
gui_rpc_client_ops.C
|
||||
|
|
|
@ -560,7 +560,7 @@ static void handle_get_cc_status(GUI_RPC_CONN* gr, MIOFILE& fout) {
|
|||
|
||||
static void handle_network_available(char*, MIOFILE& fout) {
|
||||
net_status.network_available();
|
||||
fout.printf("<success>\n");
|
||||
fout.printf("<success/>\n");
|
||||
}
|
||||
|
||||
static void handle_get_project_init_status(char*, MIOFILE& fout) {
|
||||
|
@ -1095,7 +1095,7 @@ int GUI_RPC_CONN::handle_rpc() {
|
|||
} else if (match_tag(request_msg, "<acct_mgr_info")) {
|
||||
handle_acct_mgr_info(request_msg, mf);
|
||||
} else if (match_tag(request_msg, "<read_global_prefs_override/>")) {
|
||||
mf.printf("<success>\n");
|
||||
mf.printf("<success/>\n");
|
||||
gstate.read_global_prefs();
|
||||
gstate.request_schedule_cpus("Preferences override");
|
||||
gstate.request_work_fetch("Preferences override");
|
||||
|
@ -1114,7 +1114,7 @@ int GUI_RPC_CONN::handle_rpc() {
|
|||
} else if (match_tag(request_msg, "<set_cc_config")) {
|
||||
handle_set_cc_config(request_msg, mf);
|
||||
} else if (match_tag(request_msg, "<read_cc_config/>")) {
|
||||
mf.printf("<success>\n");
|
||||
mf.printf("<success/>\n");
|
||||
read_config_file();
|
||||
gstate.request_schedule_cpus("Core client configuration");
|
||||
gstate.request_work_fetch("Core client configuration");
|
||||
|
|
|
@ -1173,7 +1173,7 @@ int RPC_CLIENT::get_simple_gui_info(SIMPLE_GUI_INFO& sgi) {
|
|||
sgi.projects.clear();
|
||||
sgi.results.clear();
|
||||
|
||||
retval = rpc.do_rpc("<get_simple_gui_info>\n");
|
||||
retval = rpc.do_rpc("<get_simple_gui_info/>\n");
|
||||
if (!retval) {
|
||||
while (rpc.fin.fgets(buf, 256)) {
|
||||
if (match_tag(buf, "</simple_gui_info>")) break;
|
||||
|
@ -1209,7 +1209,7 @@ int RPC_CLIENT::get_simple_gui_info(CC_STATE& state, RESULTS& results) {
|
|||
|
||||
results.clear();
|
||||
|
||||
retval = rpc.do_rpc("<get_simple_gui_info>\n");
|
||||
retval = rpc.do_rpc("<get_simple_gui_info/>\n");
|
||||
if (!retval) {
|
||||
|
||||
// mark all projects for deletion (undo if client still has them)
|
||||
|
|
Loading…
Reference in New Issue