1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__CRM_COMMON_SCORES__H
11 #define PCMK__CRM_COMMON_SCORES__H
12
13 #include <stdbool.h>
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19
20
21
22
23
24
25
26 #define PCMK_SCORE_INFINITY 1000000
27
28 int pcmk_parse_score(const char *score_s, int *score, int default_score);
29 const char *pcmk_readable_score(int score);
30 bool pcmk_str_is_infinity(const char *s);
31 bool pcmk_str_is_minus_infinity(const char *s);
32
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
38 #include <crm/common/scores_compat.h>
39 #endif
40
41 #endif