2008-08-06 18:36:30 +00:00
|
|
|
// This file is part of BOINC.
|
2005-01-20 23:22:22 +00:00
|
|
|
// http://boinc.berkeley.edu
|
2008-08-06 18:36:30 +00:00
|
|
|
// Copyright (C) 2008 University of California
|
2002-04-30 22:22:54 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +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.
|
2005-01-20 23:22:22 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
2005-01-20 23:22:22 +00:00
|
|
|
// 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.
|
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2003-05-08 23:28:01 +00:00
|
|
|
#ifndef _FILE_NAMES_
|
|
|
|
#define _FILE_NAMES_
|
|
|
|
|
2002-06-01 20:26:21 +00:00
|
|
|
#include "client_types.h"
|
2006-12-11 23:42:54 +00:00
|
|
|
#include "common_defs.h"
|
2002-06-21 06:52:47 +00:00
|
|
|
#include "prefs.h"
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2009-06-02 00:22:45 +00:00
|
|
|
extern int make_soft_link(PROJECT* project, char* link_path, char* rel_file_path);
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
// get the pathname (relative to client home dir) of a project file
|
|
|
|
//
|
2007-03-13 19:33:27 +00:00
|
|
|
extern void get_pathname(FILE_INFO* fip, char* path, int len);
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
// get the pathname (relative to client home dir) of the
|
|
|
|
// directory used for a particular application "slot"
|
|
|
|
//
|
2007-03-13 19:33:27 +00:00
|
|
|
extern void get_slot_dir(int slot, char* path, int len);
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
extern int make_project_dir(PROJECT&);
|
2002-12-02 20:52:22 +00:00
|
|
|
extern int remove_project_dir(PROJECT&);
|
2002-04-30 22:22:54 +00:00
|
|
|
extern int make_slot_dir(int);
|
2005-10-10 03:21:52 +00:00
|
|
|
extern void delete_old_slot_dirs();
|
2002-09-26 05:57:10 +00:00
|
|
|
extern void get_account_filename(char* master_url, char* path);
|
2005-02-16 23:17:43 +00:00
|
|
|
extern bool is_account_file(const char*);
|
2005-04-04 06:02:36 +00:00
|
|
|
extern bool is_statistics_file(const char*);
|
|
|
|
extern void get_statistics_filename(char* master_url, char* path);
|
2005-04-06 19:41:31 +00:00
|
|
|
extern bool is_image_file(const char*);
|
2005-04-04 06:02:36 +00:00
|
|
|
|
2007-03-13 19:33:27 +00:00
|
|
|
extern void get_sched_request_filename(PROJECT&, char*, int len);
|
|
|
|
extern void get_sched_reply_filename(PROJECT&, char*, int len);
|
|
|
|
extern void get_master_filename(PROJECT&, char*, int len);
|
2007-04-13 04:22:20 +00:00
|
|
|
extern void job_log_filename(PROJECT&, char*, int);
|
2006-12-12 23:32:25 +00:00
|
|
|
extern void boinc_version_dir(PROJECT&, VERSION_INFO&, char*);
|
2006-12-11 23:42:54 +00:00
|
|
|
extern bool is_version_dir(char*, VERSION_INFO&);
|
2007-06-20 23:16:30 +00:00
|
|
|
extern void send_log_after(const char* filename, double t, MIOFILE& mf);
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2010-04-21 22:05:55 +00:00
|
|
|
#define ACCT_MGR_LOGIN_FILENAME "acct_mgr_login.xml"
|
|
|
|
#define ACCT_MGR_REPLY_FILENAME "acct_mgr_reply.xml"
|
|
|
|
#define ACCT_MGR_REQUEST_FILENAME "acct_mgr_request.xml"
|
|
|
|
#define ACCT_MGR_URL_FILENAME "acct_mgr_url.xml"
|
|
|
|
#define ALL_PROJECTS_LIST_FILENAME "all_projects_list.xml"
|
|
|
|
#define ALL_PROJECTS_LIST_FILENAME_TEMP "all_projects_list_temp.xml"
|
2012-11-28 20:26:49 +00:00
|
|
|
#define APP_CONFIG_FILE_NAME "app_config.xml"
|
|
|
|
#define APP_INFO_FILE_NAME "app_info.xml"
|
2010-04-21 22:05:55 +00:00
|
|
|
#define CA_BUNDLE_FILENAME "ca-bundle.crt"
|
|
|
|
#define CERTIFICATE_DIRECTORY "certificates"
|
|
|
|
#define CLIENT_AUTH_FILENAME "client_auth.xml"
|
2011-11-14 06:27:36 +00:00
|
|
|
#define CLIENT_OPAQUE_FILENAME "client_opaque.txt"
|
2010-04-21 22:05:55 +00:00
|
|
|
#define CONFIG_FILE "cc_config.xml"
|
2013-06-25 11:31:34 +00:00
|
|
|
#define COPROC_INFO_FILENAME "coproc_info.xml"
|
2010-04-21 22:05:55 +00:00
|
|
|
#define CPU_BENCHMARKS_FILE_NAME "cpu_benchmarks"
|
|
|
|
#define CREATE_ACCOUNT_FILENAME "create_account.xml"
|
|
|
|
#define DAILY_XFER_HISTORY_FILENAME "daily_xfer_history.xml"
|
|
|
|
#define GET_CURRENT_VERSION_FILENAME "get_current_version.xml"
|
|
|
|
#define GET_PROJECT_CONFIG_FILENAME "get_project_config.xml"
|
|
|
|
#define GLOBAL_PREFS_FILE_NAME "global_prefs.xml"
|
|
|
|
#define GLOBAL_PREFS_OVERRIDE_FILE "global_prefs_override.xml"
|
|
|
|
#define JOB_LOG_BASE "job_log_"
|
|
|
|
#define LOOKUP_ACCOUNT_FILENAME "lookup_account.xml"
|
|
|
|
#define LOOKUP_WEBSITE_FILENAME "lookup_website.html"
|
|
|
|
#define MASTER_BASE "master_"
|
|
|
|
#define NOTICES_DIR "notices"
|
|
|
|
#define PROJECT_INIT_FILENAME "project_init.xml"
|
2003-04-01 03:28:37 +00:00
|
|
|
#define PROJECTS_DIR "projects"
|
2010-04-21 22:05:55 +00:00
|
|
|
#define REMOTEHOST_FILE_NAME "remote_hosts.cfg"
|
|
|
|
#define SCHED_OP_REPLY_BASE "sched_reply_"
|
|
|
|
#define SCHED_OP_REQUEST_BASE "sched_request_"
|
|
|
|
#define SETPROJECTGRP_FILE_NAME "setprojectgrp"
|
2003-04-01 03:28:37 +00:00
|
|
|
#define SLOTS_DIR "slots"
|
2004-07-15 23:58:43 +00:00
|
|
|
#define STATE_FILE_NEXT "client_state_next.xml"
|
2003-04-01 03:28:37 +00:00
|
|
|
#define STATE_FILE_NAME "client_state.xml"
|
2004-07-15 23:58:43 +00:00
|
|
|
#define STATE_FILE_PREV "client_state_prev.xml"
|
2003-04-01 03:28:37 +00:00
|
|
|
#define STDERR_FILE_NAME "stderr.txt"
|
|
|
|
#define STDOUT_FILE_NAME "stdout.txt"
|
2010-04-21 22:05:55 +00:00
|
|
|
#define SWITCHER_DIR "switcher"
|
2006-06-17 00:20:46 +00:00
|
|
|
#define SWITCHER_FILE_NAME "switcher"
|
2009-04-15 06:22:53 +00:00
|
|
|
#define TASK_STATE_FILENAME "boinc_task_state.xml"
|
2010-04-21 22:05:55 +00:00
|
|
|
#define TEMP_ACCT_FILE_NAME "temp_acct.xml"
|
|
|
|
#define TEMP_FILE_NAME "temp.xml"
|
|
|
|
#define TEMP_STATS_FILE_NAME "temp_stats.xml"
|
|
|
|
#define TEMP_TIME_STATS_FILE_NAME "temp_time_stats.xml"
|
|
|
|
#define TIME_STATS_LOG "time_stats_log"
|
|
|
|
|
2003-05-08 23:28:01 +00:00
|
|
|
#endif
|