From a1804833433e0e04ca0ba56beee55cf74ccf1119 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 13 Mar 2006 20:45:08 +0000 Subject: [PATCH] api change svn path=/trunk/boinc/; revision=9639 --- api/boinc_api.C | 6 +++--- api/boinc_api.h | 4 ++-- api/graphics_lib.C | 2 +- checkin_notes | 8 ++++++++ doc/papers.php | 6 ++++-- 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/api/boinc_api.C b/api/boinc_api.C index f66b63eb6f..3d4b351b54 100644 --- a/api/boinc_api.C +++ b/api/boinc_api.C @@ -243,12 +243,12 @@ static bool update_app_progress( // int boinc_init() { boinc_options_defaults(options); - return boinc_init_options(options); + return boinc_init_options(&options); } -int boinc_init_options(BOINC_OPTIONS& opt) { +int boinc_init_options(BOINC_OPTIONS* opt) { int retval; - retval = boinc_init_options_general(opt); + retval = boinc_init_options_general(*opt); if (retval) return retval; return set_worker_timer(); } diff --git a/api/boinc_api.h b/api/boinc_api.h index 450c36fd34..a7b277510e 100755 --- a/api/boinc_api.h +++ b/api/boinc_api.h @@ -88,6 +88,8 @@ extern int boinc_is_standalone(void); extern void boinc_ops_per_cpu_sec(double fp, double integer); extern void boinc_ops_cumulative(double fp, double integer); extern int boinc_receive_trickle_down(char* buf, int len); +extern int boinc_init_options(BOINC_OPTIONS*); +extern int boinc_get_status(BOINC_STATUS*); #ifdef __APPLE__ extern int setMacPList(void); @@ -103,8 +105,6 @@ extern int setMacIcon(char *filename, char *iconData, long iconSize); #include #include "app_ipc.h" -extern int boinc_init_options(BOINC_OPTIONS&); -extern int boinc_get_status(BOINC_STATUS*); extern int boinc_resolve_filename_s(const char*, std::string&); extern int boinc_get_init_data(APP_INIT_DATA&); extern int boinc_wu_cpu_time(double&); diff --git a/api/graphics_lib.C b/api/graphics_lib.C index 6748bafc8a..d6664e5386 100644 --- a/api/graphics_lib.C +++ b/api/graphics_lib.C @@ -148,7 +148,7 @@ no_graphics: // library dependencies on machine (eg, no X11, no GL libraries, // etc) or unable to find needed symbol in library // - boinc_init_options(opt); + boinc_init_options(&opt); worker(); // worker() should call boinc_finish so we should NEVER get here! diff --git a/checkin_notes b/checkin_notes index 00f1fa1c67..16c5450af2 100755 --- a/checkin_notes +++ b/checkin_notes @@ -2813,3 +2813,11 @@ David 11 Mar 2006 sched/ handle_request.C transitioner.C + +David 13 Mar 2006 + - change arg of boinc_init_options() from BOINC_OPTIONS& + to BOINC_OPTIONS* (so you can call it from C) + + api/ + boinc_api.C,h + graphics_lib.C diff --git a/doc/papers.php b/doc/papers.php index fcb45f29f7..e80971db10 100644 --- a/doc/papers.php +++ b/doc/papers.php @@ -4,8 +4,10 @@ page_head("Papers related to BOINC"); echo" The Computational and Storage Potential of Volunteer Computing -
David P. Anderson -
Submitted for publication +
David P. Anderson and Gilles Fedak +
IEEE/ACM International Symposium on Cluster Computing and the Grid, + Singapore, May 16-19, 2006. +
The Challenge of Volunteer Computing With Lengthy Climate Model Simulations