]> git.sesse.net Git - freerainbowtables/blob - BOINC software/BOINC server apps/distrrtgen_validator/validate_util2.h
initial
[freerainbowtables] / BOINC software / BOINC server apps / distrrtgen_validator / validate_util2.h
1 // This file is part of BOINC.
2 // http://boinc.berkeley.edu
3 // Copyright (C) 2008 University of California
4 //
5 // BOINC is free software; you can redistribute it and/or modify it
6 // under the terms of the GNU Lesser General Public License
7 // as published by the Free Software Foundation,
8 // either version 3 of the License, or (at your option) any later version.
9 //
10 // BOINC is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 // See the GNU Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with BOINC.  If not, see <http://www.gnu.org/licenses/>.
17
18 #ifndef _VALIDATE_UTIL2_
19 #define _VALIDATE_UTIL2_
20
21 #include <string>
22 #include <vector>
23
24 using std::string;
25
26 extern int init_result(RESULT&, void*&);
27 extern int compare_results(RESULT &, void*, RESULT const&, void*, bool&);
28 extern int cleanup_result(RESULT const&, void*);
29 extern double compute_granted_credit(WORKUNIT&, std::vector<RESULT>& results);
30
31 #endif