pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Typedefs | Functions | Variables
output_text.c File Reference
#include <crm_internal.h>
#include <crm/common/cmdline_internal.h>
#include <stdarg.h>
#include <stdlib.h>
#include <glib.h>
#include <termios.h>
#include "crmcommon_private.h"
Include dependency graph for output_text.c:

Go to the source code of this file.

Typedefs

typedef struct text_list_data_s text_list_data_t
 
typedef struct private_data_s private_data_t
 

Functions

pcmk__output_tpcmk__mk_text_output (char **argv)
 
bool pcmk__output_text_get_fancy (pcmk__output_t *out)
 
void pcmk__output_text_set_fancy (pcmk__output_t *out, bool enabled)
 
void pcmk__formatted_vprintf (pcmk__output_t *out, const char *format, va_list args)
 
void pcmk__formatted_printf (pcmk__output_t *out, const char *format,...)
 
void pcmk__indented_vprintf (pcmk__output_t *out, const char *format, va_list args)
 
void pcmk__indented_printf (pcmk__output_t *out, const char *format,...)
 
void pcmk__text_prompt (const char *prompt, bool echo, char **dest)
 

Variables

GOptionEntry pcmk__text_output_entries []
 

Typedef Documentation

◆ private_data_t

typedef struct private_data_s private_data_t

◆ text_list_data_t

typedef struct text_list_data_s text_list_data_t

Function Documentation

◆ pcmk__formatted_printf()

void pcmk__formatted_printf ( pcmk__output_t out,
const char *  format,
  ... 
)

Definition at line 417 of file output_text.c.

◆ pcmk__formatted_vprintf()

void pcmk__formatted_vprintf ( pcmk__output_t out,
const char *  format,
va_list  args 
)

Definition at line 409 of file output_text.c.

◆ pcmk__indented_printf()

void pcmk__indented_printf ( pcmk__output_t out,
const char *  format,
  ... 
)

Definition at line 459 of file output_text.c.

◆ pcmk__indented_vprintf()

void pcmk__indented_vprintf ( pcmk__output_t out,
const char *  format,
va_list  args 
)

Definition at line 429 of file output_text.c.

◆ pcmk__mk_text_output()

pcmk__output_t* pcmk__mk_text_output ( char **  argv)

Definition at line 323 of file output_text.c.

◆ pcmk__output_text_get_fancy()

bool pcmk__output_text_get_fancy ( pcmk__output_t out)

Definition at line 372 of file output_text.c.

◆ pcmk__output_text_set_fancy()

void pcmk__output_text_set_fancy ( pcmk__output_t out,
bool  enabled 
)

Definition at line 395 of file output_text.c.

◆ pcmk__text_prompt()

void pcmk__text_prompt ( const char *  prompt,
bool  echo,
char **  dest 
)

Definition at line 470 of file output_text.c.

Variable Documentation

◆ pcmk__text_output_entries

GOptionEntry pcmk__text_output_entries[]
Initial value:
= {
{ "text-fancy", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &fancy,
"Use more highly formatted output (requires --output-as=text)",
NULL },
{ NULL }
}

Definition at line 24 of file output_text.c.