18 #include <sys/types.h> 67 return (
int) score_ll;
99 snprintf(score_s,
sizeof(score_s),
"%d", score);
121 int result = score1 + score2;
#define CRM_CHECK(expr, failure_action)
#define PCMK_VALUE_MINUS_INFINITY
#define PCMK_VALUE_INFINITY
int pcmk__add_scores(int score1, int score2)
int char2score(const char *score)
Get the integer value of a score string.
int pcmk__scan_ll(const char *text, long long *result, long long default_value)
const char * pcmk_readable_score(int score)
Return a displayable static string for a score value.
char * score2char(int score)
bool pcmk_str_is_infinity(const char *s)
#define pcmk__str_copy(str)
pcmk__action_result_t result
bool pcmk_str_is_minus_infinity(const char *s)
Deprecated Pacemaker score APIs.
#define PCMK_VALUE_YELLOW
char * score2char_stack(int score, char *buf, size_t len)
#define PCMK_SCORE_INFINITY
Integer score to use to represent "infinity".