diff --git a/checkin_notes b/checkin_notes
index f52f4b021c..96c8e22575 100755
--- a/checkin_notes
+++ b/checkin_notes
@@ -18922,3 +18922,11 @@ David 26 Oct 2004
edit_forum_preferences_form.php
forum_post.php
forum_rate.php
+
+David 26 Oct 2004
+ - added "supports graphics" boolean to RESULT GUI RPC reply
+
+ client/
+ app.C
+ lib/
+ gui_rpc_client.C,h
diff --git a/client/app.C b/client/app.C
index 817938fed9..68834fa0d4 100644
--- a/client/app.C
+++ b/client/app.C
@@ -341,7 +341,7 @@ int ACTIVE_TASK::write(MIOFILE& fout) {
" %f\n"
" %f\n"
" %f\n"
- "%s"
+ "%s%s"
"\n",
result->project->master_url,
result->name,
@@ -353,7 +353,8 @@ int ACTIVE_TASK::write(MIOFILE& fout) {
fraction_done,
current_cpu_time,
vm_size,
- suspended_via_gui?" \n":""
+ suspended_via_gui?" \n":"",
+ supports_graphics()?" \n":""
);
return 0;
}
diff --git a/lib/gui_rpc_client.C b/lib/gui_rpc_client.C
index d8a6baba14..74b83aeaf4 100644
--- a/lib/gui_rpc_client.C
+++ b/lib/gui_rpc_client.C
@@ -303,6 +303,10 @@ int RESULT::parse(MIOFILE& in) {
active_task = true;
continue;
}
+ else if (match_tag(buf, "")) {
+ supports_graphics = true;
+ continue;
+ }
else if (parse_double(buf, "", final_cpu_time)) continue;
else if (parse_int(buf, "", state)) continue;
else if (parse_int(buf, "", scheduler_state)) continue;
@@ -361,6 +365,7 @@ void RESULT::clear() {
fraction_done = 0.0;
estimated_cpu_time_remaining = 0.0;
suspended_via_gui = false;
+ supports_graphics = false;
}
FILE_TRANSFER::FILE_TRANSFER() {
diff --git a/lib/gui_rpc_client.h b/lib/gui_rpc_client.h
index f70a48cf73..494a0db60b 100644
--- a/lib/gui_rpc_client.h
+++ b/lib/gui_rpc_client.h
@@ -146,6 +146,7 @@ public:
double vm_size;
double estimated_cpu_time_remaining;
bool suspended_via_gui;
+ bool supports_graphics;
APP* app;
WORKUNIT* wup;