#include <crm_internal.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <crm/crm.h>
#include <crm/common/util.h>
Go to the source code of this file.
◆ _GNU_SOURCE
◆ crm_generate_ra_key()
char* crm_generate_ra_key |
( |
const char * |
standard, |
|
|
const char * |
provider, |
|
|
const char * |
type |
|
) |
| |
◆ crm_parse_agent_spec()
int crm_parse_agent_spec |
( |
const char * |
spec, |
|
|
char ** |
standard, |
|
|
char ** |
provider, |
|
|
char ** |
type |
|
) |
| |
Parse a "standard[:provider]:type" agent specification.
- Parameters
-
[in] | spec | Agent specification |
[out] | standard | Newly allocated memory containing agent standard (or NULL) |
[out] | provider | Newly allocated memory containing agent provider (or NULL) |
| [put] | type Newly allocated memory containing agent type (or NULL) |
- Returns
- pcmk_ok if the string could be parsed, -EINVAL otherwise
- Note
- It is acceptable for the type to contain a ':' if the standard supports that. For example, systemd supports the form "systemd:UNIT@A:B".
-
It is the caller's responsibility to free the returned values.
Definition at line 120 of file agents.c.
◆ crm_provider_required()
bool crm_provider_required |
( |
const char * |
standard | ) |
|
Check whether a resource standard requires a provider to be specified.
- Deprecated:
- Parameters
-
[in] | standard | Standard name |
- Returns
- TRUE if standard requires a provider, FALSE otherwise
Definition at line 170 of file agents.c.
◆ pcmk__effective_rc()
int pcmk__effective_rc |
( |
int |
rc | ) |
|
◆ pcmk_get_ra_caps()
uint32_t pcmk_get_ra_caps |
( |
const char * |
standard | ) |
|
Get capabilities of a resource agent standard.
- Parameters
-
[in] | standard | Standard name |
- Returns
- Bitmask of enum pcmk_ra_caps values
Definition at line 31 of file agents.c.