pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
Data Structures | Macros | Functions | Variables
results_internal.h File Reference
#include <glib.h>
Include dependency graph for results_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__action_result_t
 

Macros

#define PCMK__RC_ERROR   pcmk__rc_error_quark()
 
#define PCMK__EXITC_ERROR   pcmk__exitc_error_quark()
 
#define PCMK__UNKNOWN_RESULT
 

Functions

int pcmk__result_bounds (enum pcmk_result_type, int *lower, int *upper)
 
GQuark pcmk__rc_error_quark (void)
 
GQuark pcmk__exitc_error_quark (void)
 
void pcmk__set_result (pcmk__action_result_t *result, int exit_status, enum pcmk_exec_status exec_status, const char *exit_reason)
 
void pcmk__format_result (pcmk__action_result_t *result, int exit_status, enum pcmk_exec_status exec_status, const char *format,...) G_GNUC_PRINTF(4
 
void void pcmk__set_result_output (pcmk__action_result_t *result, char *out, char *err)
 
void pcmk__reset_result (pcmk__action_result_t *result)
 
void pcmk__copy_result (const pcmk__action_result_t *src, pcmk__action_result_t *dst)
 
int pcmk__gaierror2rc (int gai)
 Map a getaddrinfo() return code to the most similar Pacemaker return code. More...
 
int pcmk__bzlib2rc (int bz2)
 Map a bz2 return code to the most similar Pacemaker return code. More...
 

Variables

const size_t pcmk__n_rc
 

Macro Definition Documentation

◆ PCMK__EXITC_ERROR

#define PCMK__EXITC_ERROR   pcmk__exitc_error_quark()

Definition at line 29 of file results_internal.h.

◆ PCMK__RC_ERROR

#define PCMK__RC_ERROR   pcmk__rc_error_quark()

Definition at line 28 of file results_internal.h.

◆ PCMK__UNKNOWN_RESULT

#define PCMK__UNKNOWN_RESULT
Value:
{ \
.exit_status = CRM_EX_OK, \
.execution_status = PCMK_EXEC_UNKNOWN, \
.exit_reason = NULL, \
.action_stdout = NULL, \
.action_stderr = NULL, \
}
Used only to initialize variables.
Definition: results.h:316
Success.
Definition: results.h:240

Definition at line 48 of file results_internal.h.

Function Documentation

◆ pcmk__bzlib2rc()

int pcmk__bzlib2rc ( int  bz2)

Map a bz2 return code to the most similar Pacemaker return code.

Parameters
[in]bz2bz2 return code
Returns
Most similar Pacemaker return code

Definition at line 906 of file results.c.

◆ pcmk__copy_result()

void pcmk__copy_result ( const pcmk__action_result_t src,
pcmk__action_result_t dst 
)

Definition at line 1089 of file results.c.

◆ pcmk__exitc_error_quark()

GQuark pcmk__exitc_error_quark ( void  )

◆ pcmk__format_result()

void pcmk__format_result ( pcmk__action_result_t result,
int  exit_status,
enum pcmk_exec_status  exec_status,
const char *  format,
  ... 
)

◆ pcmk__gaierror2rc()

int pcmk__gaierror2rc ( int  gai)

Map a getaddrinfo() return code to the most similar Pacemaker return code.

Parameters
[in]gaigetaddrinfo() return code
Returns
Most similar Pacemaker return code

Definition at line 865 of file results.c.

◆ pcmk__rc_error_quark()

GQuark pcmk__rc_error_quark ( void  )

◆ pcmk__reset_result()

void pcmk__reset_result ( pcmk__action_result_t result)

Definition at line 1065 of file results.c.

◆ pcmk__result_bounds()

int pcmk__result_bounds ( enum  pcmk_result_type,
int *  lower,
int *  upper 
)

Definition at line 94 of file results.c.

◆ pcmk__set_result()

void pcmk__set_result ( pcmk__action_result_t result,
int  exit_status,
enum pcmk_exec_status  exec_status,
const char *  exit_reason 
)

Definition at line 976 of file results.c.

◆ pcmk__set_result_output()

void void pcmk__set_result_output ( pcmk__action_result_t result,
char *  out,
char *  err 
)

Definition at line 1045 of file results.c.

Variable Documentation

◆ pcmk__n_rc

const size_t pcmk__n_rc

Definition at line 331 of file results.c.