#include <crm_internal.h>
#include <stdio.h>
#include <crm/msg_xml.h>
#include <crm/common/attrd_internal.h>
Go to the source code of this file.
◆ _GNU_SOURCE
◆ LRM_TARGET_ENV
#define LRM_TARGET_ENV "OCF_RESKEY_" CRM_META "_" XML_LRM_ATTR_TARGET |
◆ 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 80 of file attrs.c.