*** empty log message ***

svn path=/trunk/boinc/; revision=10214
This commit is contained in:
David Anderson 2006-05-28 14:45:29 +00:00
parent 69748078d3
commit 7f563832b0
4 changed files with 15 additions and 0 deletions

View File

@ -5187,3 +5187,12 @@ David 27 May 2006
create_account_action.php
create_account_form.php
get_project_config.php
David 28 May 2006
- Add account manager URL to APP_INIT_DATA structure
(so that apps can see what acct mgr is being used, if they want)
client/
app_start.C
lib/
app_ipc.C,h

View File

@ -161,6 +161,7 @@ int ACTIVE_TASK::write_app_init_file() {
aid.app_version = app_version->version_num;
safe_strcpy(aid.app_name, wup->app->name);
safe_strcpy(aid.symstore, wup->project->symstore);
safe_strcpy(aid.acct_mgr_url, gstate.acct_mgr_info.acct_mgr_url);
safe_strcpy(aid.user_name, wup->project->user_name);
safe_strcpy(aid.team_name, wup->project->team_name);
if (wup->project->project_specific_prefs.length()) {

View File

@ -96,6 +96,9 @@ int write_init_data_file(FILE* f, APP_INIT_DATA& ai) {
if (strlen(ai.symstore)) {
fprintf(f, "<symstore>%s</symstore>\n", ai.symstore);
}
if (strlen(ai.acct_mgr_url)) {
fprintf(f, "<acct_mgr_url>%s</acct_mgr_url>\n", ai.acct_mgr_url);
}
if (ai.project_preferences && strlen(ai.project_preferences)) {
fprintf(f, "<project_preferences>\n%s</project_preferences>\n", ai.project_preferences);
}
@ -190,6 +193,7 @@ int parse_init_data_file(FILE* f, APP_INIT_DATA& ai) {
else if (parse_int(buf, "<app_version>", ai.app_version)) continue;
else if (parse_str(buf, "<app_name>", ai.app_name, sizeof(ai.app_name))) continue;
else if (parse_str(buf, "<symstore>", ai.symstore, sizeof(ai.symstore))) continue;
else if (parse_str(buf, "<acct_mgr_url>", ai.acct_mgr_url, sizeof(ai.acct_mgr_url))) continue;
else if (parse_str(buf, "<user_name>", ai.user_name, sizeof(ai.user_name))) continue;
else if (parse_str(buf, "<team_name>", ai.team_name, sizeof(ai.team_name))) continue;
else if (parse_str(buf, "<project_dir>", ai.project_dir, sizeof(ai.project_dir))) continue;

View File

@ -162,6 +162,7 @@ struct APP_INIT_DATA {
int app_version;
char app_name[256];
char symstore[256];
char acct_mgr_url[256];
char* project_preferences;
int userid;
int teamid;