2016-02-08 20:21:11 +00:00
|
|
|
// This file is part of BOINC.
|
|
|
|
// http://boinc.berkeley.edu
|
2017-07-03 21:46:01 +00:00
|
|
|
// Copyright (C) 2017 University of California
|
2016-02-08 20:21:11 +00:00
|
|
|
//
|
|
|
|
// BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation,
|
|
|
|
// either version 3 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2017-04-08 06:54:49 +00:00
|
|
|
#ifndef BOINC_PROJECT_INIT_H
|
|
|
|
#define BOINC_PROJECT_INIT_H
|
2016-02-08 20:21:11 +00:00
|
|
|
|
|
|
|
#define PROJECT_INIT_FILENAME "project_init.xml"
|
|
|
|
|
2017-07-03 21:46:01 +00:00
|
|
|
// represents the contents of project_init.xml,
|
2020-08-05 22:59:19 +00:00
|
|
|
// specifying a project, and optionally an account, to attach to initially
|
2016-02-08 20:21:11 +00:00
|
|
|
//
|
|
|
|
class PROJECT_INIT {
|
|
|
|
public:
|
|
|
|
char url[256];
|
|
|
|
char name[256];
|
|
|
|
char account_key[256];
|
2017-07-03 21:46:01 +00:00
|
|
|
|
|
|
|
// Is the project_init.xml file embedded in the installer?
|
|
|
|
// Or was it generated from of the command line of the install.
|
2020-08-05 22:59:19 +00:00
|
|
|
// No longer used.
|
2017-07-03 21:46:01 +00:00
|
|
|
//
|
2016-02-08 20:21:11 +00:00
|
|
|
bool embedded;
|
|
|
|
|
|
|
|
PROJECT_INIT();
|
|
|
|
int init();
|
|
|
|
int remove();
|
|
|
|
void clear();
|
|
|
|
|
|
|
|
// Used by installers to create/modify project_init.xml in the data
|
2017-07-03 21:46:01 +00:00
|
|
|
// directory at install time.
|
|
|
|
// Useful for creating automated install processes.
|
2020-08-05 22:59:19 +00:00
|
|
|
//
|
2016-02-08 20:21:11 +00:00
|
|
|
int write();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|