pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
Macros
common_compat.h File Reference

Deprecated Pacemaker scheduler utilities. More...

#include <crm/common/scheduler.h>
Include dependency graph for common_compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RSC_ROLE_MAX   (pcmk_role_promoted + 1)
 
#define RSC_ROLE_UNKNOWN_S   role2text(pcmk_role_unknown)
 
#define RSC_ROLE_STOPPED_S   role2text(pcmk_role_stopped)
 
#define RSC_ROLE_STARTED_S   role2text(pcmk_role_started)
 
#define RSC_ROLE_UNPROMOTED_S   role2text(pcmk_role_unpromoted)
 
#define RSC_ROLE_PROMOTED_S   role2text(pcmk_role_promoted)
 
#define RSC_ROLE_UNPROMOTED_LEGACY_S   "Slave"
 
#define RSC_ROLE_SLAVE_S   RSC_ROLE_UNPROMOTED_LEGACY_S
 
#define RSC_ROLE_PROMOTED_LEGACY_S   "Master"
 
#define RSC_ROLE_MASTER_S   RSC_ROLE_PROMOTED_LEGACY_S
 

Detailed Description

Deprecated Pacemaker scheduler utilities.

Deprecated:
Do not include this header directly. The utilities in this header, and the header itself, will be removed in a future release.

Definition in file common_compat.h.

Macro Definition Documentation

◆ RSC_ROLE_MASTER_S

#define RSC_ROLE_MASTER_S   RSC_ROLE_PROMOTED_LEGACY_S
Deprecated:
Do not use

Definition at line 56 of file common_compat.h.

◆ RSC_ROLE_MAX

#define RSC_ROLE_MAX   (pcmk_role_promoted + 1)
Deprecated:
Use (pcmk_role_promoted + 1) instead

Definition at line 29 of file common_compat.h.

◆ RSC_ROLE_PROMOTED_LEGACY_S

#define RSC_ROLE_PROMOTED_LEGACY_S   "Master"
Deprecated:
Do not use

Definition at line 53 of file common_compat.h.

◆ RSC_ROLE_PROMOTED_S

#define RSC_ROLE_PROMOTED_S   role2text(pcmk_role_promoted)
Deprecated:
Use role2text(pcmk_role_promoted) instead

Definition at line 44 of file common_compat.h.

◆ RSC_ROLE_SLAVE_S

#define RSC_ROLE_SLAVE_S   RSC_ROLE_UNPROMOTED_LEGACY_S
Deprecated:
Do not use

Definition at line 50 of file common_compat.h.

◆ RSC_ROLE_STARTED_S

#define RSC_ROLE_STARTED_S   role2text(pcmk_role_started)
Deprecated:
Use role2text(pcmk_role_started) instead

Definition at line 38 of file common_compat.h.

◆ RSC_ROLE_STOPPED_S

#define RSC_ROLE_STOPPED_S   role2text(pcmk_role_stopped)
Deprecated:
Use role2text(pcmk_role_stopped) instead

Definition at line 35 of file common_compat.h.

◆ RSC_ROLE_UNKNOWN_S

#define RSC_ROLE_UNKNOWN_S   role2text(pcmk_role_unknown)
Deprecated:
Use role2text(pcmk_role_unknown) instead

Definition at line 32 of file common_compat.h.

◆ RSC_ROLE_UNPROMOTED_LEGACY_S

#define RSC_ROLE_UNPROMOTED_LEGACY_S   "Slave"
Deprecated:
Do not use

Definition at line 47 of file common_compat.h.

◆ RSC_ROLE_UNPROMOTED_S

#define RSC_ROLE_UNPROMOTED_S   role2text(pcmk_role_unpromoted)
Deprecated:
Use role2text(pcmk_role_unpromoted) instead

Definition at line 41 of file common_compat.h.