45 const char *proc_stdout,
const char *proc_stderr) {
73 none_begin_list(
pcmk__output_t *out, const
char *singular_noun, const
char *plural_noun,
74 const
char *format, ...) {
80 none_list_item(
pcmk__output_t *out, const
char *
id, const
char *format, ...) {
110 none_prompt(
const char *prompt,
bool echo,
char **dest) {
118 if (retval == NULL) {
123 retval->
request = argv == NULL ? NULL : g_strjoinv(
" ", argv);
125 retval->
init = none_init;
127 retval->
finish = none_finish;
128 retval->
reset = none_reset;
134 retval->
version = none_version;
135 retval->
info = none_info;
136 retval->
err = none_err;
145 retval->
spacer = none_spacer;
147 retval->
prompt = none_prompt;
bool(* init)(pcmk__output_t *out)
void(* register_message)(pcmk__output_t *out, const char *message_id, pcmk__message_fn_t fn)
const char * fmt_name
The name of this output formatter.
void(* reset)(pcmk__output_t *out)
void pcmk__register_message(pcmk__output_t *out, const char *message_id, pcmk__message_fn_t fn)
int(* message)(pcmk__output_t *out, const char *message_id,...)
enum crm_exit_e crm_exit_t
int(*) void(* err)(pcmk__output_t *out, const char *format,...) G_GNUC_PRINTF(2
int pcmk__call_message(pcmk__output_t *out, const char *message_id,...)
bool(* is_quiet)(pcmk__output_t *out)
void(* end_list)(pcmk__output_t *out)
void(* begin_list)(pcmk__output_t *out, const char *singular_noun, const char *plural_noun, const char *format,...) G_GNUC_PRINTF(4
pcmk__output_t * pcmk__mk_none_output(char **argv)
bool quiet
Should this formatter supress most output?
void(* subprocess_output)(pcmk__output_t *out, int exit_status, const char *proc_stdout, const char *proc_stderr)
int(* info)(pcmk__output_t *out, const char *format,...) G_GNUC_PRINTF(2
void(* spacer)(pcmk__output_t *out)
void(* progress)(pcmk__output_t *out, bool end)
GOptionEntry pcmk__none_output_entries[]
void(*) void(*) void(* increment_list)(pcmk__output_t *out)
void(* finish)(pcmk__output_t *out, crm_exit_t exit_status, bool print, void **copy_dest)
void(* free_priv)(pcmk__output_t *out)
gchar * request
A copy of the request that generated this output.
This structure contains everything that makes up a single output formatter.
void(* version)(pcmk__output_t *out, bool extended)
void(* prompt)(const char *prompt, bool echo, char **dest)
int(*) void(*) void(* output_xml)(pcmk__output_t *out, const char *name, const char *buf)
void(*) void(* list_item)(pcmk__output_t *out, const char *name, const char *format,...) G_GNUC_PRINTF(3