Go to the source code of this file.
◆ _GNU_SOURCE
◆ LRM_TARGET_ENV
◆ OCF_RESKEY_PREFIX
#define OCF_RESKEY_PREFIX "OCF_RESKEY_" |
◆ pcmk__node_attr()
const char* pcmk__node_attr |
( |
const pcmk_node_t * |
node, |
|
|
const char * |
name, |
|
|
const char * |
target, |
|
|
enum pcmk__rsc_node |
node_type |
|
) |
| |
◆ pcmk__node_attr_target()
const char* pcmk__node_attr_target |
( |
const char * |
name | ) |
|
◆ pcmk_promotion_score_name()
char* pcmk_promotion_score_name |
( |
const char * |
rsc_id | ) |
|
Return the name of the node attribute used as a promotion score.
- Parameters
-
[in] | rsc_id | Resource ID that promotion score is for (or NULL to check the OCF_RESOURCE_INSTANCE environment variable) |
- Returns
- Newly allocated string with the node attribute name (or NULL on error, including no ID or environment variable specified)
- Note
- It is the caller's responsibility to free() the result.
Definition at line 92 of file attrs.c.