Lines Matching refs:buf
65 int (*proc) (pa_core *c, pa_tokenizer*t, pa_strbuf *buf, bool *fail);
84 static int pa_cli_command_exit(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
85 static int pa_cli_command_help(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
86 static int pa_cli_command_modules(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
87 static int pa_cli_command_clients(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
88 static int pa_cli_command_cards(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
89 static int pa_cli_command_sinks(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
90 static int pa_cli_command_sources(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
91 static int pa_cli_command_sink_inputs(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
92 static int pa_cli_command_source_outputs(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
93 static int pa_cli_command_stat(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
94 static int pa_cli_command_info(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
95 static int pa_cli_command_load(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
96 static int pa_cli_command_unload(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
97 static int pa_cli_command_describe(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
98 static int pa_cli_command_sink_volume(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
99 static int pa_cli_command_sink_input_volume(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail…
100 static int pa_cli_command_source_output_volume(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *f…
101 static int pa_cli_command_source_volume(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
102 static int pa_cli_command_sink_mute(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
103 static int pa_cli_command_source_mute(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
104 static int pa_cli_command_sink_input_mute(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
105 static int pa_cli_command_source_output_mute(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fai…
106 static int pa_cli_command_sink_default(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
107 static int pa_cli_command_source_default(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
108 static int pa_cli_command_kill_client(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
109 static int pa_cli_command_kill_sink_input(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
110 static int pa_cli_command_kill_source_output(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fai…
111 static int pa_cli_command_scache_play(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
112 static int pa_cli_command_scache_remove(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
113 static int pa_cli_command_scache_list(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
114 static int pa_cli_command_scache_load(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
115 static int pa_cli_command_scache_load_dir(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
116 static int pa_cli_command_play_file(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
117 static int pa_cli_command_dump(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
118 static int pa_cli_command_list_shared_props(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail…
119 static int pa_cli_command_move_sink_input(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
120 static int pa_cli_command_move_source_output(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fai…
121 static int pa_cli_command_vacuum(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
122 static int pa_cli_command_suspend_sink(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
123 static int pa_cli_command_suspend_source(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
124 static int pa_cli_command_suspend(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
125 static int pa_cli_command_log_target(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
126 static int pa_cli_command_log_level(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
127 static int pa_cli_command_log_meta(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
128 static int pa_cli_command_log_time(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
129 static int pa_cli_command_log_backtrace(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
130 static int pa_cli_command_update_sink_proplist(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *f…
131 static int pa_cli_command_update_source_proplist(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool …
132 static int pa_cli_command_update_sink_input_proplist(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, b…
133 static int pa_cli_command_update_source_output_proplist(pa_core *c, pa_tokenizer *t, pa_strbuf *buf…
134 static int pa_cli_command_card_profile(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
135 static int pa_cli_command_sink_port(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
136 static int pa_cli_command_source_port(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
137 static int pa_cli_command_port_offset(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
138 static int pa_cli_command_dump_volumes(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail);
139 static int pa_cli_command_send_message_to_object(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool …
218 static int pa_cli_command_exit(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_exit() argument
221 pa_assert(buf); in pa_cli_command_exit()
225 pa_strbuf_puts(buf, "Not allowed to terminate daemon.\n"); in pa_cli_command_exit()
230 static int pa_cli_command_help(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_help() argument
235 pa_assert(buf); in pa_cli_command_help()
238 pa_strbuf_puts(buf, "Available commands:\n"); in pa_cli_command_help()
242 pa_strbuf_printf(buf, " %-25s %s\n", command->name, command->help); in pa_cli_command_help()
246 static int pa_cli_command_modules(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_modules() argument
251 pa_assert(buf); in pa_cli_command_modules()
255 pa_strbuf_puts(buf, s); in pa_cli_command_modules()
260 static int pa_cli_command_clients(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_clients() argument
265 pa_assert(buf); in pa_cli_command_clients()
269 pa_strbuf_puts(buf, s); in pa_cli_command_clients()
274 static int pa_cli_command_cards(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_cards() argument
279 pa_assert(buf); in pa_cli_command_cards()
283 pa_strbuf_puts(buf, s); in pa_cli_command_cards()
288 static int pa_cli_command_sinks(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_sinks() argument
293 pa_assert(buf); in pa_cli_command_sinks()
297 pa_strbuf_puts(buf, s); in pa_cli_command_sinks()
302 static int pa_cli_command_sources(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_sources() argument
307 pa_assert(buf); in pa_cli_command_sources()
311 pa_strbuf_puts(buf, s); in pa_cli_command_sources()
316 static int pa_cli_command_sink_inputs(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_sink_inputs() argument
321 pa_assert(buf); in pa_cli_command_sink_inputs()
325 pa_strbuf_puts(buf, s); in pa_cli_command_sink_inputs()
330 static int pa_cli_command_source_outputs(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_source_outputs() argument
335 pa_assert(buf); in pa_cli_command_source_outputs()
339 pa_strbuf_puts(buf, s); in pa_cli_command_source_outputs()
344 static int pa_cli_command_stat(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_stat() argument
362 pa_assert(buf); in pa_cli_command_stat()
367 pa_strbuf_printf(buf, "Memory blocks currently allocated: %u, size: %s.\n", in pa_cli_command_stat()
371 pa_strbuf_printf(buf, "Memory blocks allocated during the whole lifetime: %u, size: %s.\n", in pa_cli_command_stat()
375 pa_strbuf_printf(buf, "Memory blocks imported from other processes: %u, size: %s.\n", in pa_cli_command_stat()
379 pa_strbuf_printf(buf, "Memory blocks exported to other processes: %u, size: %s.\n", in pa_cli_command_stat()
383 pa_strbuf_printf(buf, "Total sample cache size: %s.\n", in pa_cli_command_stat()
386 pa_strbuf_printf(buf, "Default sample spec: %s\n", in pa_cli_command_stat()
389 pa_strbuf_printf(buf, "Default channel map: %s\n", in pa_cli_command_stat()
392 pa_strbuf_printf(buf, "Default sink name: %s\n" in pa_cli_command_stat()
398 pa_strbuf_printf(buf, in pa_cli_command_stat()
407 static int pa_cli_command_info(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_info() argument
410 pa_assert(buf); in pa_cli_command_info()
413 pa_cli_command_stat(c, t, buf, fail); in pa_cli_command_info()
414 pa_cli_command_modules(c, t, buf, fail); in pa_cli_command_info()
415 pa_cli_command_sinks(c, t, buf, fail); in pa_cli_command_info()
416 pa_cli_command_sources(c, t, buf, fail); in pa_cli_command_info()
417 pa_cli_command_clients(c, t, buf, fail); in pa_cli_command_info()
418 pa_cli_command_cards(c, t, buf, fail); in pa_cli_command_info()
419 pa_cli_command_sink_inputs(c, t, buf, fail); in pa_cli_command_info()
420 pa_cli_command_source_outputs(c, t, buf, fail); in pa_cli_command_info()
421 pa_cli_command_scache_list(c, t, buf, fail); in pa_cli_command_info()
425 static int pa_cli_command_load(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_load() argument
432 pa_assert(buf); in pa_cli_command_load()
436 pa_strbuf_puts(buf, "You need to specify the module name and optionally arguments.\n"); in pa_cli_command_load()
442 pa_strbuf_puts(buf, "Module already loaded; ignoring.\n"); in pa_cli_command_load()
444 pa_strbuf_puts(buf, "Module load failed.\n"); in pa_cli_command_load()
452 static int pa_cli_command_unload(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_unload() argument
460 pa_assert(buf); in pa_cli_command_unload()
464 pa_strbuf_puts(buf, "You need to specify the module index or name.\n"); in pa_cli_command_unload()
470 pa_strbuf_puts(buf, "Invalid module index.\n"); in pa_cli_command_unload()
484 pa_strbuf_printf(buf, "Module %s not loaded.\n", i); in pa_cli_command_unload()
492 static int pa_cli_command_describe(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_describe() argument
498 pa_assert(buf); in pa_cli_command_describe()
502 pa_strbuf_puts(buf, "You need to specify the module name.\n"); in pa_cli_command_describe()
508 pa_strbuf_printf(buf, "Name: %s\n", name); in pa_cli_command_describe()
511 pa_strbuf_printf(buf, "No module information available\n"); in pa_cli_command_describe()
514 pa_strbuf_printf(buf, "Version: %s\n", i->version); in pa_cli_command_describe()
516 pa_strbuf_printf(buf, "Description: %s\n", i->description); in pa_cli_command_describe()
518 pa_strbuf_printf(buf, "Author: %s\n", i->author); in pa_cli_command_describe()
520 pa_strbuf_printf(buf, "Usage: %s\n", i->usage); in pa_cli_command_describe()
521 pa_strbuf_printf(buf, "Load Once: %s\n", pa_yes_no(i->load_once)); in pa_cli_command_describe()
523 pa_strbuf_printf(buf, "Warning, deprecated: %s\n", i->deprecated); in pa_cli_command_describe()
528 pa_strbuf_puts(buf, "Failed to open module.\n"); in pa_cli_command_describe()
533 static int pa_cli_command_sink_volume(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_sink_volume() argument
541 pa_assert(buf); in pa_cli_command_sink_volume()
545 pa_strbuf_puts(buf, "You need to specify a sink either by its name or its index.\n"); in pa_cli_command_sink_volume()
550 …pa_strbuf_puts(buf, "You need to specify a volume >= 0. (0 is muted, 0x10000 is normal volume)\n"); in pa_cli_command_sink_volume()
555 pa_strbuf_puts(buf, "Failed to parse volume.\n"); in pa_cli_command_sink_volume()
560 pa_strbuf_puts(buf, "Volume outside permissible range.\n"); in pa_cli_command_sink_volume()
565 pa_strbuf_puts(buf, "No sink found by this name or index.\n"); in pa_cli_command_sink_volume()
574 static int pa_cli_command_sink_input_volume(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail… in pa_cli_command_sink_input_volume() argument
583 pa_assert(buf); in pa_cli_command_sink_input_volume()
587 pa_strbuf_puts(buf, "You need to specify a sink input by its index.\n"); in pa_cli_command_sink_input_volume()
592 pa_strbuf_puts(buf, "Failed to parse index.\n"); in pa_cli_command_sink_input_volume()
597 …pa_strbuf_puts(buf, "You need to specify a volume >= 0. (0 is muted, 0x10000 is normal volume)\n"); in pa_cli_command_sink_input_volume()
602 pa_strbuf_puts(buf, "Failed to parse volume.\n"); in pa_cli_command_sink_input_volume()
607 pa_strbuf_puts(buf, "Volume outside permissible range.\n"); in pa_cli_command_sink_input_volume()
612 pa_strbuf_puts(buf, "No sink input found with this index.\n"); in pa_cli_command_sink_input_volume()
617 pa_strbuf_puts(buf, "This sink input's volume can't be changed.\n"); in pa_cli_command_sink_input_volume()
626 static int pa_cli_command_source_volume(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_source_volume() argument
634 pa_assert(buf); in pa_cli_command_source_volume()
638 pa_strbuf_puts(buf, "You need to specify a source either by its name or its index.\n"); in pa_cli_command_source_volume()
643 …pa_strbuf_puts(buf, "You need to specify a volume >= 0. (0 is muted, 0x10000 is normal volume)\n"); in pa_cli_command_source_volume()
648 pa_strbuf_puts(buf, "Failed to parse volume.\n"); in pa_cli_command_source_volume()
653 pa_strbuf_puts(buf, "Volume outside permissible range.\n"); in pa_cli_command_source_volume()
658 pa_strbuf_puts(buf, "No source found by this name or index.\n"); in pa_cli_command_source_volume()
667 static int pa_cli_command_source_output_volume(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *f… in pa_cli_command_source_output_volume() argument
676 pa_assert(buf); in pa_cli_command_source_output_volume()
680 pa_strbuf_puts(buf, "You need to specify a source output by its index.\n"); in pa_cli_command_source_output_volume()
685 pa_strbuf_puts(buf, "Failed to parse index.\n"); in pa_cli_command_source_output_volume()
690 …pa_strbuf_puts(buf, "You need to specify a volume >= 0. (0 is muted, 0x10000 is normal volume)\n"); in pa_cli_command_source_output_volume()
695 pa_strbuf_puts(buf, "Failed to parse volume.\n"); in pa_cli_command_source_output_volume()
700 pa_strbuf_puts(buf, "Volume outside permissible range.\n"); in pa_cli_command_source_output_volume()
705 pa_strbuf_puts(buf, "No source output found with this index.\n"); in pa_cli_command_source_output_volume()
710 pa_strbuf_puts(buf, "This source output's volume can't be changed.\n"); in pa_cli_command_source_output_volume()
719 static int pa_cli_command_sink_mute(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_sink_mute() argument
726 pa_assert(buf); in pa_cli_command_sink_mute()
730 pa_strbuf_puts(buf, "You need to specify a sink either by its name or its index.\n"); in pa_cli_command_sink_mute()
735 pa_strbuf_puts(buf, "You need to specify a mute switch setting (0/1).\n"); in pa_cli_command_sink_mute()
740 pa_strbuf_puts(buf, "Failed to parse mute switch.\n"); in pa_cli_command_sink_mute()
745 pa_strbuf_puts(buf, "No sink found by this name or index.\n"); in pa_cli_command_sink_mute()
753 static int pa_cli_command_source_mute(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_source_mute() argument
760 pa_assert(buf); in pa_cli_command_source_mute()
764 pa_strbuf_puts(buf, "You need to specify a source either by its name or its index.\n"); in pa_cli_command_source_mute()
769 pa_strbuf_puts(buf, "You need to specify a mute switch setting (0/1).\n"); in pa_cli_command_source_mute()
774 pa_strbuf_puts(buf, "Failed to parse mute switch.\n"); in pa_cli_command_source_mute()
779 pa_strbuf_puts(buf, "No sink found by this name or index.\n"); in pa_cli_command_source_mute()
787 static int pa_cli_command_update_sink_proplist(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *f… in pa_cli_command_update_sink_proplist() argument
794 pa_assert(buf); in pa_cli_command_update_sink_proplist()
798 pa_strbuf_puts(buf, "You need to specify a sink either by its name or its index.\n"); in pa_cli_command_update_sink_proplist()
803 pa_strbuf_puts(buf, "You need to specify a \"key=value\" argument.\n"); in pa_cli_command_update_sink_proplist()
808 pa_strbuf_puts(buf, "No sink found by this name or index.\n"); in pa_cli_command_update_sink_proplist()
813 pa_strbuf_puts(buf, "Failed to parse proplist.\n"); in pa_cli_command_update_sink_proplist()
824 static int pa_cli_command_update_source_proplist(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool … in pa_cli_command_update_source_proplist() argument
831 pa_assert(buf); in pa_cli_command_update_source_proplist()
835 pa_strbuf_puts(buf, "You need to specify a source either by its name or its index.\n"); in pa_cli_command_update_source_proplist()
840 pa_strbuf_puts(buf, "You need to specify a \"key=value\" argument.\n"); in pa_cli_command_update_source_proplist()
845 pa_strbuf_puts(buf, "No source found by this name or index.\n"); in pa_cli_command_update_source_proplist()
850 pa_strbuf_puts(buf, "Failed to parse proplist.\n"); in pa_cli_command_update_source_proplist()
861 static int pa_cli_command_update_sink_input_proplist(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, b… in pa_cli_command_update_sink_input_proplist() argument
869 pa_assert(buf); in pa_cli_command_update_sink_input_proplist()
873 pa_strbuf_puts(buf, "You need to specify a sink input either by index.\n"); in pa_cli_command_update_sink_input_proplist()
878 pa_strbuf_puts(buf, "Failed to parse index.\n"); in pa_cli_command_update_sink_input_proplist()
883 pa_strbuf_puts(buf, "You need to specify a \"key=value\" argument.\n"); in pa_cli_command_update_sink_input_proplist()
888 pa_strbuf_puts(buf, "No sink input found with this index.\n"); in pa_cli_command_update_sink_input_proplist()
893 pa_strbuf_puts(buf, "Failed to parse proplist.\n"); in pa_cli_command_update_sink_input_proplist()
904 static int pa_cli_command_update_source_output_proplist(pa_core *c, pa_tokenizer *t, pa_strbuf *buf… in pa_cli_command_update_source_output_proplist() argument
912 pa_assert(buf); in pa_cli_command_update_source_output_proplist()
916 pa_strbuf_puts(buf, "You need to specify a source output by its index.\n"); in pa_cli_command_update_source_output_proplist()
921 pa_strbuf_puts(buf, "Failed to parse index.\n"); in pa_cli_command_update_source_output_proplist()
926 pa_strbuf_puts(buf, "You need to specify a \"key=value\" argument.\n"); in pa_cli_command_update_source_output_proplist()
931 pa_strbuf_puts(buf, "No source output found with this index.\n"); in pa_cli_command_update_source_output_proplist()
936 pa_strbuf_puts(buf, "Failed to parse proplist.\n"); in pa_cli_command_update_source_output_proplist()
947 static int pa_cli_command_sink_input_mute(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_sink_input_mute() argument
955 pa_assert(buf); in pa_cli_command_sink_input_mute()
959 pa_strbuf_puts(buf, "You need to specify a sink input by its index.\n"); in pa_cli_command_sink_input_mute()
964 pa_strbuf_puts(buf, "Failed to parse index.\n"); in pa_cli_command_sink_input_mute()
969 pa_strbuf_puts(buf, "You need to specify a mute switch setting (0/1).\n"); in pa_cli_command_sink_input_mute()
974 pa_strbuf_puts(buf, "Failed to parse mute switch.\n"); in pa_cli_command_sink_input_mute()
979 pa_strbuf_puts(buf, "No sink input found with this index.\n"); in pa_cli_command_sink_input_mute()
987 static int pa_cli_command_source_output_mute(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fai… in pa_cli_command_source_output_mute() argument
995 pa_assert(buf); in pa_cli_command_source_output_mute()
999 pa_strbuf_puts(buf, "You need to specify a source output by its index.\n"); in pa_cli_command_source_output_mute()
1004 pa_strbuf_puts(buf, "Failed to parse index.\n"); in pa_cli_command_source_output_mute()
1009 pa_strbuf_puts(buf, "You need to specify a mute switch setting (0/1).\n"); in pa_cli_command_source_output_mute()
1014 pa_strbuf_puts(buf, "Failed to parse mute switch.\n"); in pa_cli_command_source_output_mute()
1019 pa_strbuf_puts(buf, "No source output found with this index.\n"); in pa_cli_command_source_output_mute()
1027 static int pa_cli_command_sink_default(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_sink_default() argument
1033 pa_assert(buf); in pa_cli_command_sink_default()
1037 pa_strbuf_puts(buf, "You need to specify a sink either by its name or its index.\n"); in pa_cli_command_sink_default()
1044 pa_strbuf_printf(buf, "Sink %s does not exist.\n", n); in pa_cli_command_sink_default()
1049 static int pa_cli_command_source_default(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_source_default() argument
1055 pa_assert(buf); in pa_cli_command_source_default()
1059 pa_strbuf_puts(buf, "You need to specify a source either by its name or its index.\n"); in pa_cli_command_source_default()
1066 pa_strbuf_printf(buf, "Source %s does not exist.\n", n); in pa_cli_command_source_default()
1070 static int pa_cli_command_kill_client(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_kill_client() argument
1077 pa_assert(buf); in pa_cli_command_kill_client()
1081 pa_strbuf_puts(buf, "You need to specify a client by its index.\n"); in pa_cli_command_kill_client()
1086 pa_strbuf_puts(buf, "Failed to parse index.\n"); in pa_cli_command_kill_client()
1091 pa_strbuf_puts(buf, "No client found by this index.\n"); in pa_cli_command_kill_client()
1099 static int pa_cli_command_kill_sink_input(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_kill_sink_input() argument
1106 pa_assert(buf); in pa_cli_command_kill_sink_input()
1110 pa_strbuf_puts(buf, "You need to specify a sink input by its index.\n"); in pa_cli_command_kill_sink_input()
1115 pa_strbuf_puts(buf, "Failed to parse index.\n"); in pa_cli_command_kill_sink_input()
1120 pa_strbuf_puts(buf, "No sink input found by this index.\n"); in pa_cli_command_kill_sink_input()
1128 static int pa_cli_command_kill_source_output(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fai… in pa_cli_command_kill_source_output() argument
1135 pa_assert(buf); in pa_cli_command_kill_source_output()
1139 pa_strbuf_puts(buf, "You need to specify a source output by its index.\n"); in pa_cli_command_kill_source_output()
1144 pa_strbuf_puts(buf, "Failed to parse index.\n"); in pa_cli_command_kill_source_output()
1149 pa_strbuf_puts(buf, "No source output found by this index.\n"); in pa_cli_command_kill_source_output()
1157 static int pa_cli_command_scache_list(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_scache_list() argument
1162 pa_assert(buf); in pa_cli_command_scache_list()
1166 pa_strbuf_puts(buf, s); in pa_cli_command_scache_list()
1172 static int pa_cli_command_scache_play(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_scache_play() argument
1179 pa_assert(buf); in pa_cli_command_scache_play()
1183 pa_strbuf_puts(buf, "You need to specify a sample name and a sink name.\n"); in pa_cli_command_scache_play()
1188 pa_strbuf_puts(buf, "No sink by that name.\n"); in pa_cli_command_scache_play()
1193 pa_strbuf_puts(buf, "Failed to play sample.\n"); in pa_cli_command_scache_play()
1197 pa_strbuf_printf(buf, "Playing on sink input #%i\n", idx); in pa_cli_command_scache_play()
1202 static int pa_cli_command_scache_remove(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_scache_remove() argument
1207 pa_assert(buf); in pa_cli_command_scache_remove()
1211 pa_strbuf_puts(buf, "You need to specify a sample name.\n"); in pa_cli_command_scache_remove()
1216 pa_strbuf_puts(buf, "Failed to remove sample.\n"); in pa_cli_command_scache_remove()
1223 static int pa_cli_command_scache_load(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_scache_load() argument
1229 pa_assert(buf); in pa_cli_command_scache_load()
1233 pa_strbuf_puts(buf, "You need to specify a file name and a sample name.\n"); in pa_cli_command_scache_load()
1243 pa_strbuf_puts(buf, "Failed to load sound file.\n"); in pa_cli_command_scache_load()
1248 static int pa_cli_command_scache_load_dir(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_scache_load_dir() argument
1253 pa_assert(buf); in pa_cli_command_scache_load_dir()
1257 pa_strbuf_puts(buf, "You need to specify a path name.\n"); in pa_cli_command_scache_load_dir()
1262 pa_strbuf_puts(buf, "Failed to load directory.\n"); in pa_cli_command_scache_load_dir()
1269 static int pa_cli_command_play_file(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_play_file() argument
1275 pa_assert(buf); in pa_cli_command_play_file()
1279 pa_strbuf_puts(buf, "You need to specify a file name and a sink name.\n"); in pa_cli_command_play_file()
1284 pa_strbuf_puts(buf, "No sink by that name.\n"); in pa_cli_command_play_file()
1289 pa_strbuf_puts(buf, "Failed to play sound file.\n"); in pa_cli_command_play_file()
1296 static int pa_cli_command_list_shared_props(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail… in pa_cli_command_list_shared_props() argument
1299 pa_assert(buf); in pa_cli_command_list_shared_props()
1302 pa_shared_dump(c, buf); in pa_cli_command_list_shared_props()
1306 static int pa_cli_command_vacuum(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_vacuum() argument
1309 pa_assert(buf); in pa_cli_command_vacuum()
1317 static int pa_cli_command_move_sink_input(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_move_sink_input() argument
1325 pa_assert(buf); in pa_cli_command_move_sink_input()
1329 pa_strbuf_puts(buf, "You need to specify a sink input by its index.\n"); in pa_cli_command_move_sink_input()
1334 pa_strbuf_puts(buf, "Failed to parse index.\n"); in pa_cli_command_move_sink_input()
1339 pa_strbuf_puts(buf, "You need to specify a sink.\n"); in pa_cli_command_move_sink_input()
1344 pa_strbuf_puts(buf, "No sink input found with this index.\n"); in pa_cli_command_move_sink_input()
1349 pa_strbuf_puts(buf, "No sink found by this name or index.\n"); in pa_cli_command_move_sink_input()
1354 pa_strbuf_puts(buf, "Moved failed.\n"); in pa_cli_command_move_sink_input()
1360 static int pa_cli_command_move_source_output(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fai… in pa_cli_command_move_source_output() argument
1368 pa_assert(buf); in pa_cli_command_move_source_output()
1372 pa_strbuf_puts(buf, "You need to specify a source output by its index.\n"); in pa_cli_command_move_source_output()
1377 pa_strbuf_puts(buf, "Failed to parse index.\n"); in pa_cli_command_move_source_output()
1382 pa_strbuf_puts(buf, "You need to specify a source.\n"); in pa_cli_command_move_source_output()
1387 pa_strbuf_puts(buf, "No source output found with this index.\n"); in pa_cli_command_move_source_output()
1392 pa_strbuf_puts(buf, "No source found by this name or index.\n"); in pa_cli_command_move_source_output()
1397 pa_strbuf_puts(buf, "Moved failed.\n"); in pa_cli_command_move_source_output()
1403 static int pa_cli_command_suspend_sink(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_suspend_sink() argument
1410 pa_assert(buf); in pa_cli_command_suspend_sink()
1414 pa_strbuf_puts(buf, "You need to specify a sink either by its name or its index.\n"); in pa_cli_command_suspend_sink()
1419 pa_strbuf_puts(buf, "You need to specify a suspend switch setting (0/1).\n"); in pa_cli_command_suspend_sink()
1424 pa_strbuf_puts(buf, "Failed to parse suspend switch.\n"); in pa_cli_command_suspend_sink()
1429 pa_strbuf_puts(buf, "No sink found by this name or index.\n"); in pa_cli_command_suspend_sink()
1436 pa_strbuf_printf(buf, "Failed to resume/suspend sink: %s\n", pa_strerror(r)); in pa_cli_command_suspend_sink()
1441 static int pa_cli_command_suspend_source(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_suspend_source() argument
1448 pa_assert(buf); in pa_cli_command_suspend_source()
1452 pa_strbuf_puts(buf, "You need to specify a source either by its name or its index.\n"); in pa_cli_command_suspend_source()
1457 pa_strbuf_puts(buf, "You need to specify a suspend switch setting (0/1).\n"); in pa_cli_command_suspend_source()
1462 pa_strbuf_puts(buf, "Failed to parse suspend switch.\n"); in pa_cli_command_suspend_source()
1467 pa_strbuf_puts(buf, "No source found by this name or index.\n"); in pa_cli_command_suspend_source()
1474 pa_strbuf_printf(buf, "Failed to resume/suspend source: %s\n", pa_strerror(r)); in pa_cli_command_suspend_source()
1479 static int pa_cli_command_suspend(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_suspend() argument
1485 pa_assert(buf); in pa_cli_command_suspend()
1489 pa_strbuf_puts(buf, "You need to specify a suspend switch setting (0/1).\n"); in pa_cli_command_suspend()
1494 pa_strbuf_puts(buf, "Failed to parse suspend switch.\n"); in pa_cli_command_suspend()
1501 pa_strbuf_printf(buf, "Failed to resume/suspend all sinks: %s\n", pa_strerror(r)); in pa_cli_command_suspend()
1504 pa_strbuf_printf(buf, "Failed to resume/suspend all sources: %s\n", pa_strerror(r)); in pa_cli_command_suspend()
1509 static int pa_cli_command_log_target(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_log_target() argument
1515 pa_assert(buf); in pa_cli_command_log_target()
1519 …pa_strbuf_puts(buf, "You need to specify a log target (null|auto|syslog|stderr|file:PATH|newfile:P… in pa_cli_command_log_target()
1530 pa_strbuf_puts(buf, "Invalid log target.\n"); in pa_cli_command_log_target()
1536 pa_strbuf_puts(buf, "Failed to set log target.\n"); in pa_cli_command_log_target()
1546 static int pa_cli_command_log_level(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_log_level() argument
1552 pa_assert(buf); in pa_cli_command_log_level()
1556 pa_strbuf_puts(buf, "You need to specify a log level (0..4).\n"); in pa_cli_command_log_level()
1561 pa_strbuf_puts(buf, "Failed to parse log level.\n"); in pa_cli_command_log_level()
1570 static int pa_cli_command_log_meta(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_log_meta() argument
1576 pa_assert(buf); in pa_cli_command_log_meta()
1580 pa_strbuf_puts(buf, "You need to specify a boolean.\n"); in pa_cli_command_log_meta()
1585 pa_strbuf_puts(buf, "Failed to parse log meta switch.\n"); in pa_cli_command_log_meta()
1594 static int pa_cli_command_log_time(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_log_time() argument
1600 pa_assert(buf); in pa_cli_command_log_time()
1604 pa_strbuf_puts(buf, "You need to specify a boolean.\n"); in pa_cli_command_log_time()
1609 pa_strbuf_puts(buf, "Failed to parse log meta switch.\n"); in pa_cli_command_log_time()
1618 static int pa_cli_command_log_backtrace(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_log_backtrace() argument
1624 pa_assert(buf); in pa_cli_command_log_backtrace()
1628 pa_strbuf_puts(buf, "You need to specify a backtrace level.\n"); in pa_cli_command_log_backtrace()
1633 pa_strbuf_puts(buf, "Failed to parse backtrace level.\n"); in pa_cli_command_log_backtrace()
1642 static int pa_cli_command_card_profile(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_card_profile() argument
1649 pa_assert(buf); in pa_cli_command_card_profile()
1653 pa_strbuf_puts(buf, "You need to specify a card either by its name or its index.\n"); in pa_cli_command_card_profile()
1658 pa_strbuf_puts(buf, "You need to specify a profile by its name.\n"); in pa_cli_command_card_profile()
1663 pa_strbuf_puts(buf, "No card found by this name or index.\n"); in pa_cli_command_card_profile()
1668 pa_strbuf_printf(buf, "No such profile: %s\n", p); in pa_cli_command_card_profile()
1673 pa_strbuf_printf(buf, "Failed to set card profile to '%s'.\n", p); in pa_cli_command_card_profile()
1680 static int pa_cli_command_sink_port(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_sink_port() argument
1686 pa_assert(buf); in pa_cli_command_sink_port()
1690 pa_strbuf_puts(buf, "You need to specify a sink either by its name or its index.\n"); in pa_cli_command_sink_port()
1695 pa_strbuf_puts(buf, "You need to specify a profile by its name.\n"); in pa_cli_command_sink_port()
1700 pa_strbuf_puts(buf, "No sink found by this name or index.\n"); in pa_cli_command_sink_port()
1705 pa_strbuf_printf(buf, "Failed to set sink port to '%s'.\n", p); in pa_cli_command_sink_port()
1712 static int pa_cli_command_source_port(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_source_port() argument
1718 pa_assert(buf); in pa_cli_command_source_port()
1722 pa_strbuf_puts(buf, "You need to specify a source either by its name or its index.\n"); in pa_cli_command_source_port()
1727 pa_strbuf_puts(buf, "You need to specify a profile by its name.\n"); in pa_cli_command_source_port()
1732 pa_strbuf_puts(buf, "No source found by this name or index.\n"); in pa_cli_command_source_port()
1737 pa_strbuf_printf(buf, "Failed to set source port to '%s'.\n", p); in pa_cli_command_source_port()
1744 static int pa_cli_command_port_offset(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_port_offset() argument
1752 pa_assert(buf); in pa_cli_command_port_offset()
1756 pa_strbuf_puts(buf, "You need to specify a card either by its name or its index.\n"); in pa_cli_command_port_offset()
1761 pa_strbuf_puts(buf, "You need to specify a port by its name.\n"); in pa_cli_command_port_offset()
1766 pa_strbuf_puts(buf, "You need to specify a latency offset.\n"); in pa_cli_command_port_offset()
1771 pa_strbuf_puts(buf, "Failed to parse the latency offset.\n"); in pa_cli_command_port_offset()
1776 pa_strbuf_puts(buf, "No card found by this name or index.\n"); in pa_cli_command_port_offset()
1781 pa_strbuf_puts(buf, "No port found by this name.\n"); in pa_cli_command_port_offset()
1790 static int pa_cli_command_send_message_to_object(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool … in pa_cli_command_send_message_to_object() argument
1797 pa_assert(buf); in pa_cli_command_send_message_to_object()
1802 pa_strbuf_puts(buf, "You need to specify an object path as recipient for the message.\n"); in pa_cli_command_send_message_to_object()
1807 pa_strbuf_puts(buf, "You need to specify a message name.\n"); in pa_cli_command_send_message_to_object()
1817 pa_strbuf_printf(buf, "Send message failed: %s\n", pa_strerror(ret)); in pa_cli_command_send_message_to_object()
1822 pa_strbuf_puts(buf, response); in pa_cli_command_send_message_to_object()
1823 pa_strbuf_puts(buf, "\n"); in pa_cli_command_send_message_to_object()
1831 static int pa_cli_command_dump(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_dump() argument
1845 pa_assert(buf); in pa_cli_command_dump()
1851 pa_strbuf_printf(buf, "### Configuration dump generated at %s\n", ctime_r(&now, txt)); in pa_cli_command_dump()
1853 pa_strbuf_printf(buf, "### Configuration dump generated at %s\n", ctime(&now)); in pa_cli_command_dump()
1858 pa_strbuf_printf(buf, "load-module %s", m->name); in pa_cli_command_dump()
1861 pa_strbuf_printf(buf, " %s", m->argument); in pa_cli_command_dump()
1863 pa_strbuf_puts(buf, "\n"); in pa_cli_command_dump()
1870 pa_strbuf_puts(buf, "\n"); in pa_cli_command_dump()
1874 …pa_strbuf_printf(buf, "set-sink-volume %s 0x%03x\n", sink->name, pa_cvolume_max(pa_sink_get_volume… in pa_cli_command_dump()
1875 …pa_strbuf_printf(buf, "set-sink-mute %s %s\n", sink->name, pa_yes_no(pa_sink_get_mute(sink, false)… in pa_cli_command_dump()
1876 …pa_strbuf_printf(buf, "suspend-sink %s %s\n", sink->name, pa_yes_no(sink->state == PA_SINK_SUSPEND… in pa_cli_command_dump()
1883 pa_strbuf_puts(buf, "\n"); in pa_cli_command_dump()
1887 …pa_strbuf_printf(buf, "set-source-volume %s 0x%03x\n", source->name, pa_cvolume_max(pa_source_get_… in pa_cli_command_dump()
1888 …pa_strbuf_printf(buf, "set-source-mute %s %s\n", source->name, pa_yes_no(pa_source_get_mute(source… in pa_cli_command_dump()
1889 …pa_strbuf_printf(buf, "suspend-source %s %s\n", source->name, pa_yes_no(source->state == PA_SOURCE… in pa_cli_command_dump()
1896 pa_strbuf_puts(buf, "\n"); in pa_cli_command_dump()
1900 pa_strbuf_printf(buf, "set-card-profile %s %s\n", card->name, card->active_profile->name); in pa_cli_command_dump()
1906 pa_strbuf_puts(buf, "\n"); in pa_cli_command_dump()
1910 pa_strbuf_printf(buf, "set-default-sink %s\n", c->default_sink->name); in pa_cli_command_dump()
1915 pa_strbuf_puts(buf, "\n"); in pa_cli_command_dump()
1917 pa_strbuf_printf(buf, "set-default-source %s\n", c->default_source->name); in pa_cli_command_dump()
1920 pa_strbuf_puts(buf, "\n### EOF\n"); in pa_cli_command_dump()
1925 static int pa_cli_command_dump_volumes(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, bool *fail) { in pa_cli_command_dump_volumes() argument
1936 pa_assert(buf); in pa_cli_command_dump_volumes()
1941 pa_strbuf_printf(buf, "Sink %d: ", s_idx); in pa_cli_command_dump_volumes()
1942 pa_strbuf_printf(buf, in pa_cli_command_dump_volumes()
1949 pa_strbuf_printf(buf, in pa_cli_command_dump_volumes()
1956 …pa_strbuf_printf(buf, "soft = %s, ", pa_cvolume_snprint_verbose(v_str, sizeof(v_str), &s->soft_vol… in pa_cli_command_dump_volumes()
1957 pa_strbuf_printf(buf, in pa_cli_command_dump_volumes()
1964 pa_strbuf_printf(buf, "save = %s\n", pa_yes_no(s->save_volume)); in pa_cli_command_dump_volumes()
1968 pa_strbuf_printf(buf, "\tInput %d: ", i_idx); in pa_cli_command_dump_volumes()
1969 …pa_strbuf_printf(buf, "volume = %s, ", pa_cvolume_snprint_verbose(v_str, sizeof(v_str), &i->volume… in pa_cli_command_dump_volumes()
1970 pa_strbuf_printf(buf, in pa_cli_command_dump_volumes()
1973 pa_strbuf_printf(buf, in pa_cli_command_dump_volumes()
1976 …pa_strbuf_printf(buf, "soft = %s, ", pa_cvolume_snprint_verbose(v_str, sizeof(v_str), &i->soft_vol… in pa_cli_command_dump_volumes()
1977 pa_strbuf_printf(buf, in pa_cli_command_dump_volumes()
1980 pa_strbuf_printf(buf, in pa_cli_command_dump_volumes()
1987 pa_strbuf_printf(buf, "save = %s\n", pa_yes_no(i->save_volume)); in pa_cli_command_dump_volumes()
1993 pa_strbuf_printf(buf, "Source %d: ", s_idx); in pa_cli_command_dump_volumes()
1994 pa_strbuf_printf(buf, in pa_cli_command_dump_volumes()
2001 pa_strbuf_printf(buf, in pa_cli_command_dump_volumes()
2008 …pa_strbuf_printf(buf, "soft = %s, ", pa_cvolume_snprint_verbose(v_str, sizeof(v_str), &so->soft_vo… in pa_cli_command_dump_volumes()
2009 pa_strbuf_printf(buf, in pa_cli_command_dump_volumes()
2016 pa_strbuf_printf(buf, "save = %s\n", pa_yes_no(so->save_volume)); in pa_cli_command_dump_volumes()
2020 pa_strbuf_printf(buf, "\tOutput %d: ", i_idx); in pa_cli_command_dump_volumes()
2021 …pa_strbuf_printf(buf, "volume = %s, ", pa_cvolume_snprint_verbose(v_str, sizeof(v_str), &o->volume… in pa_cli_command_dump_volumes()
2022 pa_strbuf_printf(buf, in pa_cli_command_dump_volumes()
2025 pa_strbuf_printf(buf, in pa_cli_command_dump_volumes()
2028 …pa_strbuf_printf(buf, "soft = %s, ", pa_cvolume_snprint_verbose(v_str, sizeof(v_str), &o->soft_vol… in pa_cli_command_dump_volumes()
2029 pa_strbuf_printf(buf, in pa_cli_command_dump_volumes()
2032 pa_strbuf_printf(buf, in pa_cli_command_dump_volumes()
2039 pa_strbuf_printf(buf, "save = %s\n", pa_yes_no(o->save_volume)); in pa_cli_command_dump_volumes()
2046 int pa_cli_command_execute_line_stateful(pa_core *c, const char *s, pa_strbuf *buf, bool *fail, int… in pa_cli_command_execute_line_stateful() argument
2051 pa_assert(buf); in pa_cli_command_execute_line_stateful()
2060 pa_strbuf_printf(buf, "Meta command %s is not valid in this context\n", cs); in pa_cli_command_execute_line_stateful()
2069 pa_strbuf_printf(buf, "Meta command %s is not valid in this context\n", cs); in pa_cli_command_execute_line_stateful()
2153 … if (pa_cli_command_execute_file(c, sorted_files[i], buf, fail) < 0 && *fail) in pa_cli_command_execute_line_stateful()
2166 } else if (pa_cli_command_execute_file(c, filename, buf, fail) < 0 && *fail) { in pa_cli_command_execute_line_stateful()
2174 pa_strbuf_printf(buf, "Meta command %s is not valid in this context\n", cs); in pa_cli_command_execute_line_stateful()
2177 pa_strbuf_printf(buf, "Nested %s commands not supported\n", cs); in pa_cli_command_execute_line_stateful()
2184 pa_strbuf_printf(buf, "Invalid meta command: %s\n", cs); in pa_cli_command_execute_line_stateful()
2203 ret = command->proc(c, t, buf, fail); in pa_cli_command_execute_line_stateful()
2214 pa_strbuf_printf(buf, "Unknown command: %s\n", cs); in pa_cli_command_execute_line_stateful()
2223 int pa_cli_command_execute_line(pa_core *c, const char *s, pa_strbuf *buf, bool *fail) { in pa_cli_command_execute_line() argument
2224 return pa_cli_command_execute_line_stateful(c, s, buf, fail, NULL); in pa_cli_command_execute_line()
2227 int pa_cli_command_execute_file_stream(pa_core *c, FILE *f, pa_strbuf *buf, bool *fail) { in pa_cli_command_execute_file_stream() argument
2235 pa_assert(buf); in pa_cli_command_execute_file_stream()
2243 if (pa_cli_command_execute_line_stateful(c, line, buf, fail, &ifstate) < 0 && *fail) in pa_cli_command_execute_file_stream()
2254 int pa_cli_command_execute_file(pa_core *c, const char *fn, pa_strbuf *buf, bool *fail) { in pa_cli_command_execute_file() argument
2261 pa_assert(buf); in pa_cli_command_execute_file()
2267 pa_strbuf_printf(buf, "open('%s') failed: %s\n", fn, pa_cstrerror(errno)); in pa_cli_command_execute_file()
2274 ret = pa_cli_command_execute_file_stream(c, f, buf, fail); in pa_cli_command_execute_file()
2283 int pa_cli_command_execute(pa_core *c, const char *s, pa_strbuf *buf, bool *fail) { in pa_cli_command_execute() argument
2290 pa_assert(buf); in pa_cli_command_execute()
2300 if (pa_cli_command_execute_line_stateful(c, line, buf, fail, &ifstate) < 0 && *fail) { in pa_cli_command_execute()