pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Functions
roles.c File Reference
#include <crm_internal.h>
#include <crm/common/scheduler.h>
#include <crm/common/scheduler_internal.h>
Include dependency graph for roles.c:

Go to the source code of this file.

Functions

const char * pcmk_role_text (enum rsc_role_e role)
 Get readable description of a resource role. More...
 
enum rsc_role_e pcmk_parse_role (const char *role)
 Parse a resource role from a string role specification. More...
 

Function Documentation

◆ pcmk_parse_role()

enum rsc_role_e pcmk_parse_role ( const char *  role)

Parse a resource role from a string role specification.

Parameters
[in]roleRole specification
Returns
Resource role corresponding to role

Definition at line 59 of file roles.c.

◆ pcmk_role_text()

const char* pcmk_role_text ( enum rsc_role_e  role)

Get readable description of a resource role.

Parameters
[in]roleResource role
Returns
Static string describing role, suitable for logging or display

Definition at line 23 of file roles.c.