api change

svn path=/trunk/boinc/; revision=9639
This commit is contained in:
David Anderson 2006-03-13 20:45:08 +00:00
parent c5d78ff656
commit a180483343
5 changed files with 18 additions and 8 deletions

View File

@ -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();
}

View File

@ -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 <string>
#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&);

View File

@ -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!

View File

@ -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

View File

@ -4,8 +4,10 @@ page_head("Papers related to BOINC");
echo"
<a href=http://boinc.berkeley.edu/boinc_papers/internet/paper.pdf>The Computational and Storage Potential of Volunteer Computing</a>
<br> David P. Anderson
<br> Submitted for publication
<br> David P. Anderson and Gilles Fedak
<br> IEEE/ACM International Symposium on Cluster Computing and the Grid,
Singapore, May 16-19, 2006.
<hr>
<a href=http://www.climateprediction.net/science/pubs/cpdn-computing.pdf>The Challenge of Volunteer Computing With Lengthy Climate Model Simulations</a>
<br>