2005-01-20 23:22:22 +00:00
|
|
|
// Berkeley Open Infrastructure for Network Computing
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2005 University of California
|
2003-09-03 05:42:33 +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.
|
2003-09-03 05:42:33 +00:00
|
|
|
//
|
2005-01-20 23:22:22 +00:00
|
|
|
// 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.
|
2002-04-30 22:22:54 +00:00
|
|
|
//
|
2005-01-20 23:22:22 +00:00
|
|
|
// 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-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"
|
2004-08-06 11:42:41 +00:00
|
|
|
#include "sched_config.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,
|
2004-09-24 21:28:12 +00:00
|
|
|
SCHED_CONFIG& config
|
2003-08-15 23:44:28 +00:00
|
|
|
);
|
|
|
|
|
2002-07-05 05:33:40 +00:00
|
|
|
extern int read_file(FILE*, char* buf);
|
2004-05-14 23:08:33 +00:00
|
|
|
extern int read_filename(const char* path, char* buf, int len);
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2003-06-04 17:21:26 +00:00
|
|
|
extern void initialize_result(DB_RESULT&, DB_WORKUNIT&);
|
2004-07-02 17:53:31 +00:00
|
|
|
|
2002-10-14 23:10:12 +00:00
|
|
|
extern int create_result(
|
2004-12-06 22:41:19 +00:00
|
|
|
TRANSITIONER_ITEM&,
|
2004-07-02 17:53:31 +00:00
|
|
|
char* result_template_filename,
|
|
|
|
char* suffix,
|
|
|
|
R_RSA_PRIVATE_KEY& key,
|
2004-09-24 21:28:12 +00:00
|
|
|
SCHED_CONFIG& config,
|
2004-07-21 21:50:25 +00:00
|
|
|
char* query_string=0
|
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,
|
2004-07-10 00:12:06 +00:00
|
|
|
const char* result_template_filename,
|
|
|
|
const char* result_template_filepath,
|
2003-09-16 21:50:03 +00:00
|
|
|
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&,
|
2004-08-06 11:42:41 +00:00
|
|
|
SCHED_CONFIG&
|
2002-04-30 22:22:54 +00:00
|
|
|
);
|
2002-12-06 07:33:45 +00:00
|
|
|
|
2003-09-03 05:42:33 +00:00
|
|
|
#endif
|