pacemaker  2.1.8-3980678f03
Scalable High-Availability cluster resource manager
scores.h
Go to the documentation of this file.
1 /*
2  * Copyright 2004-2024 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 
10 #ifndef PCMK__CRM_COMMON_SCORES__H
11 #define PCMK__CRM_COMMON_SCORES__H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
23 #define PCMK_SCORE_INFINITY 1000000
25 
26 const char *pcmk_readable_score(int score);
27 int char2score(const char *score);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif // PCMK__CRM_COMMON_SCORES__H
const char * pcmk_readable_score(int score)
Return a displayable static string for a score value.
Definition: scores.c:86
int char2score(const char *score)
Get the integer value of a score string.
Definition: scores.c:36