#include <crm_internal.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <crm/crm.h>
Go to the source code of this file.
|
void | pcmk__cli_option_cleanup () |
|
void | pcmk__set_cli_options (const char *short_options, const char *app_usage, pcmk__cli_option_t *long_options, const char *app_desc) |
|
int | pcmk__next_cli_option (int argc, char **argv, int *index, const char **longname) |
|
void | pcmk__cli_help (char cmd, crm_exit_t exit_code) |
|
const char * | pcmk__env_option (const char *option) |
|
void | pcmk__set_env_option (const char *option, const char *value) |
| Set or unset a Pacemaker environment variable option. More...
|
|
bool | pcmk__env_option_enabled (const char *daemon, const char *option) |
|
bool | pcmk__valid_interval_spec (const char *value) |
|
bool | pcmk__valid_boolean (const char *value) |
|
bool | pcmk__valid_number (const char *value) |
|
bool | pcmk__valid_positive_number (const char *value) |
|
bool | pcmk__valid_quorum (const char *value) |
|
bool | pcmk__valid_script (const char *value) |
|
bool | pcmk__valid_percentage (const char *value) |
|
const char * | pcmk__cluster_option (GHashTable *options, pcmk__cluster_option_t *option_list, int len, const char *name) |
|
char * | pcmk__format_option_metadata (const char *name, const char *desc_short, const char *desc_long, pcmk__cluster_option_t *option_list, int len) |
|
void | pcmk__validate_cluster_options (GHashTable *options, pcmk__cluster_option_t *option_list, int len) |
|
◆ _GNU_SOURCE
◆ pcmk__cli_help()
void pcmk__cli_help |
( |
char |
cmd, |
|
|
crm_exit_t |
exit_code |
|
) |
| |
◆ pcmk__cli_option_cleanup()
void pcmk__cli_option_cleanup |
( |
void |
| ) |
|
◆ pcmk__cluster_option()
const char* pcmk__cluster_option |
( |
GHashTable * |
options, |
|
|
pcmk__cluster_option_t * |
option_list, |
|
|
int |
len, |
|
|
const char * |
name |
|
) |
| |
◆ pcmk__env_option()
const char* pcmk__env_option |
( |
const char * |
option | ) |
|
◆ pcmk__env_option_enabled()
bool pcmk__env_option_enabled |
( |
const char * |
daemon, |
|
|
const char * |
option |
|
) |
| |
◆ pcmk__format_option_metadata()
char* pcmk__format_option_metadata |
( |
const char * |
name, |
|
|
const char * |
desc_short, |
|
|
const char * |
desc_long, |
|
|
pcmk__cluster_option_t * |
option_list, |
|
|
int |
len |
|
) |
| |
◆ pcmk__next_cli_option()
int pcmk__next_cli_option |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
int * |
index, |
|
|
const char ** |
longname |
|
) |
| |
◆ pcmk__set_cli_options()
void pcmk__set_cli_options |
( |
const char * |
short_options, |
|
|
const char * |
app_usage, |
|
|
pcmk__cli_option_t * |
long_options, |
|
|
const char * |
app_desc |
|
) |
| |
◆ pcmk__set_env_option()
void pcmk__set_env_option |
( |
const char * |
option, |
|
|
const char * |
value |
|
) |
| |
Set or unset a Pacemaker environment variable option.
Set an environment variable option with both a PCMK_ and (for backward compatibility) HA_ prefix.
- Parameters
-
[in] | option | Environment variable name (without prefix) |
[in] | value | New value (or NULL to unset) |
Definition at line 319 of file options.c.
◆ pcmk__valid_boolean()
bool pcmk__valid_boolean |
( |
const char * |
value | ) |
|
◆ pcmk__valid_interval_spec()
bool pcmk__valid_interval_spec |
( |
const char * |
value | ) |
|
◆ pcmk__valid_number()
bool pcmk__valid_number |
( |
const char * |
value | ) |
|
◆ pcmk__valid_percentage()
bool pcmk__valid_percentage |
( |
const char * |
value | ) |
|
◆ pcmk__valid_positive_number()
bool pcmk__valid_positive_number |
( |
const char * |
value | ) |
|
◆ pcmk__valid_quorum()
bool pcmk__valid_quorum |
( |
const char * |
value | ) |
|
◆ pcmk__valid_script()
bool pcmk__valid_script |
( |
const char * |
value | ) |
|
◆ pcmk__validate_cluster_options()