1 // This file is part of BOINC.
2 // http://boinc.berkeley.edu
3 // Copyright (C) 2008 University of California
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.
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.
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/>.
18 #include "sched_config.h"
20 extern double max_granted_credit;
21 // the -max_granted_credit cmdline arg, or 0
22 extern double max_claimed_credit;
23 // the -max_claimed_credit cmdline arg, or 0
24 extern bool grant_claimed_credit;
25 // the -grant_claimed_credit cmdline arg, or false
27 extern WORKUNIT* g_wup;
28 // A pointer to the WU currently being processed;
29 // you can use this in your init_result() etc. functions