*** empty log message ***

svn path=/trunk/boinc/; revision=10194
This commit is contained in:
Rom Walton 2006-05-24 23:56:41 +00:00
parent 29c352a869
commit 89d6e1fab7
3 changed files with 22 additions and 2 deletions

View File

@ -5012,3 +5012,9 @@ Bruce 24 May 2006
handle_request.C
server_types.C
Rom 24 May 2006
- Provide a way for an application to specify its symstore even when
the core client doesn't yet support symstores.
lib/
diagnostics.C, .h

View File

@ -268,7 +268,7 @@ int diagnostics_init(
if (boinc_proxy_enabled) {
int buffer_used = snprintf(boinc_proxy, sizeof(boinc_proxy), "%s:%d", proxy_address, proxy_port);
if ((sizeof(boinc_proxy) == buffer_used) || (-1 == buffer_used)) {
boinc_proxy[255] = '\0';
boinc_proxy[sizeof(boinc_proxy)-1] = '\0';
}
}
}
@ -348,13 +348,26 @@ char* diagnostics_get_boinc_dir() {
}
// return the location of the Symbol Store.
// return the location of the symbol store.
//
char* diagnostics_get_symstore() {
return symstore;
}
// store the location of the symbol store.
//
int diagnostics_set_symstore(char* project_symstore) {
if (!strlen(symstore)) {
int buffer_used = snprintf(symstore, sizeof(symstore), "%s", project_symstore);
if ((sizeof(symstore) == buffer_used) || (-1 == buffer_used)) {
symstore[sizeof(symstore)-1] = '\0';
}
}
return 0;
}
// do we need to worry about a proxy server?
//
int diagnostics_is_proxy_enabled() {

View File

@ -81,6 +81,7 @@ extern int diagnostics_is_flag_set( int flags );
// Properties
extern char* diagnostics_get_boinc_dir();
extern char* diagnostics_get_symstore();
extern int diagnostics_set_symstore(char* symstore);
extern int diagnostics_is_proxy_enabled();
extern char* diagnostics_get_proxy();