This source file includes following definitions.
- none_free_priv
- none_init
- none_finish
- none_reset
- none_subprocess_output
- none_version
- G_GNUC_PRINTF
- G_GNUC_PRINTF
- none_output_xml
- G_GNUC_PRINTF
- G_GNUC_PRINTF
- none_increment_list
- none_end_list
- none_is_quiet
- none_spacer
- none_progress
- none_prompt
- pcmk__mk_none_output
1
2
3
4
5
6
7
8
9
10 #include <crm_internal.h>
11
12 #include <stdlib.h>
13 #include <glib.h>
14
15 #include <crm/crm.h>
16
17 GOptionEntry pcmk__none_output_entries[] = {
18 { NULL }
19 };
20
21 static void
22 none_free_priv(pcmk__output_t *out) {
23
24 }
25
26 static bool
27 none_init(pcmk__output_t *out) {
28 return true;
29 }
30
31 static void
32 none_finish(pcmk__output_t *out, crm_exit_t exit_status, bool print, void **copy_dest) {
33
34 }
35
36 static void
37 none_reset(pcmk__output_t *out) {
38 CRM_ASSERT(out != NULL);
39 none_free_priv(out);
40 none_init(out);
41 }
42
43 static void
44 none_subprocess_output(pcmk__output_t *out, int exit_status,
45 const char *proc_stdout, const char *proc_stderr) {
46
47 }
48
49 static void
50 none_version(pcmk__output_t *out, bool extended) {
51
52 }
53
54 G_GNUC_PRINTF(2, 3)
55 static void
56 none_err(pcmk__output_t *out, const char *format, ...) {
57
58 }
59
60 G_GNUC_PRINTF(2, 3)
61 static int
62 none_info(pcmk__output_t *out, const char *format, ...) {
63 return pcmk_rc_no_output;
64 }
65
66 static void
67 none_output_xml(pcmk__output_t *out, const char *name, const char *buf) {
68
69 }
70
71 G_GNUC_PRINTF(4, 5)
72 static void
73 none_begin_list(pcmk__output_t *out, const char *singular_noun, const char *plural_noun,
74 const char *format, ...) {
75
76 }
77
78 G_GNUC_PRINTF(3, 4)
79 static void
80 none_list_item(pcmk__output_t *out, const char *id, const char *format, ...) {
81
82 }
83
84 static void
85 none_increment_list(pcmk__output_t *out) {
86
87 }
88
89 static void
90 none_end_list(pcmk__output_t *out) {
91
92 }
93
94 static bool
95 none_is_quiet(pcmk__output_t *out) {
96 return out->quiet;
97 }
98
99 static void
100 none_spacer(pcmk__output_t *out) {
101
102 }
103
104 static void
105 none_progress(pcmk__output_t *out, bool end) {
106
107 }
108
109 static void
110 none_prompt(const char *prompt, bool echo, char **dest) {
111
112 }
113
114 pcmk__output_t *
115 pcmk__mk_none_output(char **argv) {
116 pcmk__output_t *retval = calloc(1, sizeof(pcmk__output_t));
117
118 if (retval == NULL) {
119 return NULL;
120 }
121
122 retval->fmt_name = "none";
123 retval->request = argv == NULL ? NULL : g_strjoinv(" ", argv);
124
125 retval->init = none_init;
126 retval->free_priv = none_free_priv;
127 retval->finish = none_finish;
128 retval->reset = none_reset;
129
130 retval->register_message = pcmk__register_message;
131 retval->message = pcmk__call_message;
132
133 retval->subprocess_output = none_subprocess_output;
134 retval->version = none_version;
135 retval->info = none_info;
136 retval->err = none_err;
137 retval->output_xml = none_output_xml;
138
139 retval->begin_list = none_begin_list;
140 retval->list_item = none_list_item;
141 retval->increment_list = none_increment_list;
142 retval->end_list = none_end_list;
143
144 retval->is_quiet = none_is_quiet;
145 retval->spacer = none_spacer;
146 retval->progress = none_progress;
147 retval->prompt = none_prompt;
148
149 return retval;
150 }