2005-01-20 23:22:22 +00:00
|
|
|
// Berkeley Open Infrastructure for Network Computing
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2005 University of California
|
2002-04-30 22:22:54 +00:00
|
|
|
//
|
2005-01-20 23:22:22 +00:00
|
|
|
// This 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 2.1 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This software 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.
|
|
|
|
//
|
|
|
|
// To view the GNU Lesser General Public License visit
|
|
|
|
// http://www.gnu.org/copyleft/lesser.html
|
|
|
|
// or write to the Free Software Foundation, Inc.,
|
|
|
|
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
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"
|
2002-06-21 06:52:47 +00:00
|
|
|
#include "prefs.h"
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
// get the pathname (relative to client home dir) of a project file
|
|
|
|
//
|
|
|
|
extern void get_pathname(FILE_INFO* fip, char* path);
|
2004-01-04 06:48:40 +00:00
|
|
|
extern void get_project_dir(PROJECT*, char*);
|
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"
|
|
|
|
//
|
|
|
|
extern void get_slot_dir(int slot, char* path);
|
|
|
|
|
|
|
|
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-09 21:03:11 +00:00
|
|
|
extern int rename_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
|
|
|
|
2002-12-19 00:37:19 +00:00
|
|
|
extern void escape_project_url(char *in, char* out);
|
2004-09-22 22:09:54 +00:00
|
|
|
extern void get_sched_request_filename(PROJECT&, char*);
|
|
|
|
extern void get_sched_reply_filename(PROJECT&, char*);
|
2005-03-10 00:43:22 +00:00
|
|
|
extern void get_master_filename(PROJECT&, char*);
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2003-04-01 03:28:37 +00:00
|
|
|
#define PROJECTS_DIR "projects"
|
|
|
|
#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 GLOBAL_PREFS_FILE_NAME "global_prefs.xml"
|
2005-03-10 00:43:22 +00:00
|
|
|
#define MASTER_BASE "master_"
|
2004-09-22 22:09:54 +00:00
|
|
|
#define SCHED_OP_REQUEST_BASE "sched_request_"
|
2005-03-10 00:43:22 +00:00
|
|
|
#define SCHED_OP_REPLY_BASE "sched_reply_"
|
2003-04-01 03:28:37 +00:00
|
|
|
#define LOG_FLAGS_FILE "log_flags.xml"
|
|
|
|
#define TEMP_FILE_NAME "temp.xml"
|
|
|
|
#define STDERR_FILE_NAME "stderr.txt"
|
|
|
|
#define STDOUT_FILE_NAME "stdout.txt"
|
2004-03-21 00:10:15 +00:00
|
|
|
#define CPU_BENCHMARKS_FILE_NAME "cpu_benchmarks"
|
2003-04-01 03:28:37 +00:00
|
|
|
#define LOCK_FILE_NAME "lockfile"
|
|
|
|
#define INI_FILE_NAME "boinc.ini"
|
|
|
|
#define LANGUAGE_FILE_NAME "language.ini"
|
|
|
|
#define LIST_STATE_FILE_NAME "list.ini"
|
2004-01-26 19:42:39 +00:00
|
|
|
#define APP_INFO_FILE_NAME "app_info.xml"
|
2004-07-10 07:33:07 +00:00
|
|
|
#define REMOTEHOST_FILE_NAME "remote_hosts.cfg"
|
2004-08-05 21:50:35 +00:00
|
|
|
#define FILE_LIST_NAME "file_list.xml"
|
2005-02-06 21:26:21 +00:00
|
|
|
#define ACCT_MGR_REPLY_FILENAME "acct_mgr_reply.xml"
|
2005-03-07 06:09:04 +00:00
|
|
|
#define GUI_RPC_PASSWD_FILE "gui_rpc_auth.cfg"
|
2005-09-22 08:46:51 +00:00
|
|
|
#define PROJECT_INIT_FILENAME "project_init.xml"
|
2005-06-21 08:22:18 +00:00
|
|
|
#define ACCT_MGR_URL_FILENAME "acct_mgr_url.xml"
|
|
|
|
#define ACCT_MGR_LOGIN_FILENAME "acct_mgr_login.xml"
|
2005-08-06 19:20:26 +00:00
|
|
|
#define GET_PROJECT_CONFIG_FILENAME "get_project_config.xml"
|
2005-08-05 22:00:19 +00:00
|
|
|
#define LOOKUP_ACCOUNT_FILENAME "lookup_account.xml"
|
|
|
|
#define CREATE_ACCOUNT_FILENAME "create_account.xml"
|
2005-08-09 09:55:45 +00:00
|
|
|
#define LOOKUP_WEBSITE_FILENAME "lookup_website.html"
|
2005-11-10 06:03:39 +00:00
|
|
|
#define GET_CURRENT_VERSION_FILENAME "get_current_version.xml"
|
2003-05-08 23:28:01 +00:00
|
|
|
|
|
|
|
#endif
|