pacemaker  2.1.8-3980678f03
Scalable High-Availability cluster resource manager
Macros | Functions
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   pcmk_role_text(pcmk_role_unknown)
 
#define RSC_ROLE_STOPPED_S   pcmk_role_text(pcmk_role_stopped)
 
#define RSC_ROLE_STARTED_S   pcmk_role_text(pcmk_role_started)
 
#define RSC_ROLE_UNPROMOTED_S   pcmk_role_text(pcmk_role_unpromoted)
 
#define RSC_ROLE_PROMOTED_S   pcmk_role_text(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
 

Functions

const char * role2text (enum rsc_role_e role)
 
enum rsc_role_e text2role (const char *role)
 
const char * task2text (enum action_tasks task)
 
enum action_tasks text2task (const char *task)
 
const char * fail2text (enum action_fail_response fail)
 
const char * pe_pref (GHashTable *options, const char *name)
 

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   pcmk_role_text(pcmk_role_promoted)
Deprecated:
Use pcmk_role_text(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   pcmk_role_text(pcmk_role_started)
Deprecated:
Use pcmk_role_text(pcmk_role_started) instead

Definition at line 38 of file common_compat.h.

◆ RSC_ROLE_STOPPED_S

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

Definition at line 35 of file common_compat.h.

◆ RSC_ROLE_UNKNOWN_S

#define RSC_ROLE_UNKNOWN_S   pcmk_role_text(pcmk_role_unknown)
Deprecated:
Use pcmk_role_text(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   pcmk_role_text(pcmk_role_unpromoted)
Deprecated:
Use pcmk_role_text(pcmk_role_unpromoted) instead

Definition at line 41 of file common_compat.h.

Function Documentation

◆ fail2text()

const char* fail2text ( enum action_fail_response  fail)
Deprecated:
Use pcmk_on_fail_text() instead

Definition at line 56 of file common.c.

◆ pe_pref()

const char* pe_pref ( GHashTable *  options,
const char *  name 
)
Deprecated:
Do not use

Definition at line 50 of file common.c.

◆ role2text()

const char* role2text ( enum rsc_role_e  role)
Deprecated:
Use pcmk_role_text() instead

Definition at line 26 of file common.c.

◆ task2text()

const char* task2text ( enum action_tasks  task)
Deprecated:
Use pcmk_action_text() instead

Definition at line 38 of file common.c.

◆ text2role()

enum rsc_role_e text2role ( const char *  role)
Deprecated:
Use pcmk_parse_role() instead

Definition at line 32 of file common.c.

◆ text2task()

enum action_tasks text2task ( const char *  task)
Deprecated:
Use pcmk_parse_action() instead

Definition at line 44 of file common.c.