2008-08-06 18:36:30 +00:00
|
|
|
// This file is part of BOINC.
|
2007-06-20 22:34:06 +00:00
|
|
|
// http://boinc.berkeley.edu
|
2008-08-06 18:36:30 +00:00
|
|
|
// Copyright (C) 2008 University of California
|
2007-06-20 22:34:06 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// BOINC 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 3 of the License, or (at your option) any later version.
|
2007-06-20 22:34:06 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
2007-06-20 22:34:06 +00:00
|
|
|
// 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.
|
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2007-06-20 22:34:06 +00:00
|
|
|
|
2017-04-08 06:54:49 +00:00
|
|
|
#ifndef BOINC_HR_H
|
|
|
|
#define BOINC_HR_H
|
2011-09-27 19:45:27 +00:00
|
|
|
|
2007-06-20 22:34:06 +00:00
|
|
|
#include "boinc_db.h"
|
|
|
|
|
|
|
|
#define HR_NTYPES 3
|
2007-06-22 03:46:42 +00:00
|
|
|
// actually ntypes+1 (0 is reserved for "no HR")
|
2007-06-20 22:34:06 +00:00
|
|
|
|
|
|
|
extern int hr_class(HOST&, int hr_type);
|
2010-04-05 18:59:16 +00:00
|
|
|
extern bool hr_unknown_class(HOST&, int hr_type);
|
2007-06-22 03:46:42 +00:00
|
|
|
extern const char* hr_names[HR_NTYPES];
|
|
|
|
extern int hr_nclasses[HR_NTYPES];
|
2011-09-27 19:45:27 +00:00
|
|
|
|
|
|
|
#endif
|