2003-06-11 23:36:48 +00:00
|
|
|
// The contents of this file are subject to the BOINC Public License
|
2002-04-30 22:22:54 +00:00
|
|
|
// 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
|
2003-06-11 23:36:48 +00:00
|
|
|
// http://boinc.berkeley.edu/license_1.0.txt
|
2003-09-03 05:42:33 +00:00
|
|
|
//
|
2002-04-30 22:22:54 +00:00
|
|
|
// 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
|
2003-09-03 05:42:33 +00:00
|
|
|
// under the License.
|
|
|
|
//
|
|
|
|
// The Original Code is the Berkeley Open Infrastructure for Network Computing.
|
|
|
|
//
|
2002-04-30 22:22:54 +00:00
|
|
|
// The Initial Developer of the Original Code is the SETI@home project.
|
|
|
|
// Portions created by the SETI@home project are Copyright (C) 2002
|
2003-09-03 05:42:33 +00:00
|
|
|
// University of California at Berkeley. All Rights Reserved.
|
|
|
|
//
|
2002-04-30 22:22:54 +00:00
|
|
|
// Contributor(s):
|
|
|
|
//
|
|
|
|
|
2003-09-03 05:42:33 +00:00
|
|
|
#ifndef H_BACKEND_LIB
|
|
|
|
#define H_BACKEND_LIB
|
|
|
|
|
2002-07-05 05:33:40 +00:00
|
|
|
#include "crypt.h"
|
2003-09-03 05:42:33 +00:00
|
|
|
#include "boinc_db.h"
|
2002-07-05 05:33:40 +00:00
|
|
|
|
2002-11-07 19:31:34 +00:00
|
|
|
extern int add_signatures(char*, R_RSA_PRIVATE_KEY&);
|
|
|
|
extern int remove_signatures(char*);
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
extern int process_result_template(
|
2002-11-06 09:03:55 +00:00
|
|
|
char* result_template,
|
2002-07-05 05:33:40 +00:00
|
|
|
R_RSA_PRIVATE_KEY& key,
|
2002-10-09 04:56:41 +00:00
|
|
|
char* base_filename,
|
2003-08-15 23:44:28 +00:00
|
|
|
char* upload_url
|
|
|
|
);
|
|
|
|
|
|
|
|
extern int process_result_template_upload_url_only(
|
|
|
|
char* result_template,
|
2003-09-16 21:50:03 +00:00
|
|
|
const char* upload_url
|
2002-04-30 22:22:54 +00:00
|
|
|
);
|
|
|
|
|
2002-07-05 05:33:40 +00:00
|
|
|
extern int read_file(FILE*, char* buf);
|
2003-09-16 21:50:03 +00:00
|
|
|
extern int read_filename(const char* path, char* buf);
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2003-06-04 17:21:26 +00:00
|
|
|
extern void initialize_result(DB_RESULT&, DB_WORKUNIT&);
|
2002-10-14 23:10:12 +00:00
|
|
|
extern int create_result(
|
2003-06-04 17:21:26 +00:00
|
|
|
DB_WORKUNIT& wu, char* result_template_filename, char* suffix,
|
2003-08-15 23:44:28 +00:00
|
|
|
R_RSA_PRIVATE_KEY& key, char* upload_url
|
2002-10-14 23:10:12 +00:00
|
|
|
);
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
extern int create_work(
|
2003-06-04 17:21:26 +00:00
|
|
|
DB_WORKUNIT& wu,
|
2003-09-16 21:50:03 +00:00
|
|
|
const char* wu_template,
|
|
|
|
const char* result_template,
|
|
|
|
const char* infile_dir,
|
|
|
|
const char** infiles,
|
2002-07-05 05:33:40 +00:00
|
|
|
int ninfiles,
|
2002-10-03 18:33:46 +00:00
|
|
|
R_RSA_PRIVATE_KEY&,
|
2003-09-16 21:50:03 +00:00
|
|
|
const char* upload_url,
|
|
|
|
const char* download_url
|
2002-04-30 22:22:54 +00:00
|
|
|
);
|
2002-12-06 07:33:45 +00:00
|
|
|
|
2004-01-04 06:48:40 +00:00
|
|
|
#if 0
|
2002-12-06 07:33:45 +00:00
|
|
|
extern int create_sequence_group(
|
2003-06-04 17:21:26 +00:00
|
|
|
DB_WORKUNIT& wu,
|
2002-12-06 07:33:45 +00:00
|
|
|
char* wu_template,
|
|
|
|
char* result_template,
|
|
|
|
char* infile_dir,
|
|
|
|
char** infiles,
|
|
|
|
int ninfiles,
|
|
|
|
R_RSA_PRIVATE_KEY&,
|
|
|
|
char* upload_url,
|
|
|
|
char* download_url,
|
|
|
|
int nsteps
|
|
|
|
);
|
2004-01-04 06:48:40 +00:00
|
|
|
#endif
|
2003-09-03 05:42:33 +00:00
|
|
|
|
|
|
|
#endif
|