2002-04-30 22:22:54 +00:00
|
|
|
// The contents of this file are subject to the Mozilla Public License
|
|
|
|
// Version 1.0 (the "License"); you may not use this file except in
|
|
|
|
// compliance with the License. You may obtain a copy of the License at
|
|
|
|
// http://www.mozilla.org/MPL/
|
|
|
|
//
|
|
|
|
// Software distributed under the License is distributed on an "AS IS"
|
|
|
|
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
|
|
|
|
// License for the specific language governing rights and limitations
|
|
|
|
// under the License.
|
|
|
|
//
|
|
|
|
// The Original Code is the Berkeley Open Infrastructure for Network Computing.
|
|
|
|
//
|
|
|
|
// The Initial Developer of the Original Code is the SETI@home project.
|
|
|
|
// Portions created by the SETI@home project are Copyright (C) 2002
|
|
|
|
// University of California at Berkeley. All Rights Reserved.
|
|
|
|
//
|
|
|
|
// Contributor(s):
|
|
|
|
//
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
// 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);
|
2002-09-26 05:57:10 +00:00
|
|
|
extern void get_account_filename(char* master_url, char* path);
|
|
|
|
extern bool is_account_file(char*);
|
2002-12-19 00:37:19 +00:00
|
|
|
extern void escape_project_url(char *in, char* out);
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-09-25 18:33:26 +00:00
|
|
|
#define PROJECTS_DIR "projects"
|
|
|
|
#define SLOTS_DIR "slots"
|
2002-06-21 06:52:47 +00:00
|
|
|
#define STATE_FILE_TEMP "state_file_temp.xml"
|
|
|
|
#define STATE_FILE_NAME "client_state.xml"
|
2002-09-29 00:32:11 +00:00
|
|
|
#define GLOBAL_PREFS_FILE_NAME "global_prefs.xml"
|
2002-06-21 06:52:47 +00:00
|
|
|
#define MASTER_FILE_NAME "master.html"
|
|
|
|
#define SCHED_OP_REQUEST_FILE "sched_request.xml"
|
|
|
|
#define SCHED_OP_RESULT_FILE "sched_reply.xml"
|
|
|
|
#define LOG_FLAGS_FILE "log_flags.xml"
|
2002-09-29 00:32:11 +00:00
|
|
|
#define TEMP_FILE_NAME "temp.xml"
|
2002-12-11 00:12:42 +00:00
|
|
|
#define STDERR_FILE_NAME "stderr.txt"
|
|
|
|
#define STDOUT_FILE_NAME "stdout.txt"
|
2002-12-09 23:51:55 +00:00
|
|
|
#define TIME_TESTS_FILE_NAME "time_tests.xml"
|
2002-12-16 23:51:33 +00:00
|
|
|
#define LOCK_FILE_NAME "lockfile"
|
2003-01-08 23:24:18 +00:00
|
|
|
#define INI_FILE_NAME "boinc.ini"
|
|
|
|
#define LANGUAGE_FILE_NAME "language.ini"
|
2003-01-28 01:22:05 +00:00
|
|
|
#define LIST_STATE_FILE_NAME "list.ini"
|