 |
pacemaker
2.0.1-9e909a5bdd
Scalable High-Availability cluster resource manager
|
Go to the documentation of this file.
34 if (standard == NULL) {
71 if (!standard && !provider && !
type) {
76 (standard? standard :
""),
77 (provider?
":" :
""), (provider? provider :
""),
115 CRM_CHECK(spec && standard && provider &&
type,
return -EINVAL);
120 colon = strchr(spec,
':');
121 if ((colon == NULL) || (colon == spec)) {
125 *standard =
strndup(spec, colon - spec);
129 colon = strchr(spec,
':');
130 if ((colon == NULL) || (colon == spec)) {
134 *provider =
strndup(spec, colon - spec);
144 *
type = strdup(spec);
#define PCMK_RESOURCE_CLASS_SYSTEMD
#define PCMK_RESOURCE_CLASS_STONITH
#define PCMK_RESOURCE_CLASS_OCF
#define CRM_CHECK(expr, failure_action)
enum crm_ais_msg_types type
char * crm_generate_ra_key(const char *standard, const char *provider, const char *type)
#define PCMK_RESOURCE_CLASS_SERVICE
uint32_t pcmk_get_ra_caps(const char *standard)
Get capabilities of a resource agent standard.
#define PCMK_RESOURCE_CLASS_NAGIOS
#define PCMK_RESOURCE_CLASS_UPSTART
char * crm_strdup_printf(char const *format,...) __attribute__((__format__(__printf__
int crm_parse_agent_spec(const char *spec, char **standard, char **provider, char **type)
Parse a "standard[:provider]:type" agent specification.
bool crm_provider_required(const char *standard)
Check whether a resource standard requires a provider to be specified.
char * strndup(const char *str, size_t len)
#define PCMK_RESOURCE_CLASS_LSB