pacemaker  2.0.4-2deceaa
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
options_internal.h File Reference
#include <config.h>
#include <glib.h>
#include <stdbool.h>
Include dependency graph for options_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pcmk__cli_option_s
 
struct  pcmk__cluster_option_s
 

Macros

#define no_argument   0
 
#define required_argument   1
 

Typedefs

typedef struct pcmk__cli_option_s pcmk__cli_option_t
 
typedef struct
pcmk__cluster_option_s 
pcmk__cluster_option_t
 

Enumerations

enum  pcmk__cli_option_flags { pcmk__option_default = (1 << 0), pcmk__option_hidden = (1 << 1), pcmk__option_paragraph = (1 << 2), pcmk__option_example = (1 << 3) }
 

Functions

void pcmk__set_cli_options (const char *short_options, const char *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)
 
_Noreturn void pcmk__cli_help (char cmd, crm_exit_t exit_code)
 
void pcmk__cli_option_cleanup (void)
 
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)
 
const char * pcmk__cluster_option (GHashTable *options, pcmk__cluster_option_t *option_list, int len, const char *name)
 
void pcmk__print_option_metadata (const char *name, const char *version, 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)
 
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_utilization (const char *value)
 
long pcmk__get_sbd_timeout (void)
 
long pcmk__auto_watchdog_timeout (void)
 
bool pcmk__valid_sbd_timeout (const char *value)
 

Macro Definition Documentation

#define no_argument   0

Definition at line 26 of file options_internal.h.

#define required_argument   1

Definition at line 27 of file options_internal.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator
pcmk__option_default 
pcmk__option_hidden 
pcmk__option_paragraph 
pcmk__option_example 

Definition at line 30 of file options_internal.h.

Function Documentation

long pcmk__auto_watchdog_timeout ( void  )

Definition at line 231 of file watchdog.c.

_Noreturn void pcmk__cli_help ( char  cmd,
crm_exit_t  exit_code 
)

Definition at line 191 of file options.c.

void pcmk__cli_option_cleanup ( void  )

Definition at line 39 of file options.c.

const char* pcmk__cluster_option ( GHashTable *  options,
pcmk__cluster_option_t option_list,
int  len,
const char *  name 
)

Definition at line 539 of file options.c.

const char* pcmk__env_option ( const char *  option)

Definition at line 284 of file options.c.

bool pcmk__env_option_enabled ( const char *  daemon,
const char *  option 
)

Definition at line 354 of file options.c.

long pcmk__get_sbd_timeout ( void  )

Definition at line 220 of file watchdog.c.

int pcmk__next_cli_option ( int  argc,
char **  argv,
int *  index,
const char **  longname 
)

Definition at line 146 of file options.c.

void pcmk__print_option_metadata ( const char *  name,
const char *  version,
const char *  desc_short,
const char *  desc_long,
pcmk__cluster_option_t option_list,
int  len 
)

Definition at line 558 of file options.c.

void pcmk__set_cli_options ( const char *  short_options,
const char *  usage,
pcmk__cli_option_t long_options,
const char *  app_desc 
)

Definition at line 105 of file options.c.

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]optionEnvironment variable name (without prefix)
[in]valueNew value (or NULL to unset)

Definition at line 317 of file options.c.

bool pcmk__valid_boolean ( const char *  value)

Definition at line 374 of file options.c.

bool pcmk__valid_interval_spec ( const char *  value)

Definition at line 367 of file options.c.

bool pcmk__valid_number ( const char *  value)

Definition at line 382 of file options.c.

bool pcmk__valid_positive_number ( const char *  value)

Definition at line 398 of file options.c.

bool pcmk__valid_quorum ( const char *  value)

Definition at line 405 of file options.c.

bool pcmk__valid_sbd_timeout ( const char *  value)

Definition at line 239 of file watchdog.c.

bool pcmk__valid_script ( const char *  value)

Definition at line 414 of file options.c.

bool pcmk__valid_utilization ( const char *  value)

Definition at line 441 of file options.c.

void pcmk__validate_cluster_options ( GHashTable *  options,
pcmk__cluster_option_t option_list,
int  len 
)

Definition at line 596 of file options.c.