1
1
#ifndef fooclicommandhfoo
2
2
#define fooclicommandhfoo
4
/* $Id: cli-command.h 1456 2007-05-26 23:39:33Z lennart $ */
4
/* $Id: cli-command.h 2008 2007-11-01 00:32:45Z lennart $ */
7
7
This file is part of PulseAudio.
31
31
* buffer *buf. If *fail is non-zero the function will return -1 when
32
32
* one or more of the executed commands failed. *fail
33
33
* may be modified by the function call. */
34
int pa_cli_command_execute_line(pa_core *c, const char *s, pa_strbuf *buf, int *fail);
34
int pa_cli_command_execute_line(pa_core *c, const char *s, pa_strbuf *buf, pa_bool_t *fail);
36
36
/* Execute a whole file of CLI commands */
37
int pa_cli_command_execute_file(pa_core *c, const char *fn, pa_strbuf *buf, int *fail);
37
int pa_cli_command_execute_file(pa_core *c, const char *fn, pa_strbuf *buf, pa_bool_t *fail);
39
39
/* Split the specified string into lines and run pa_cli_command_execute_line() for each. */
40
int pa_cli_command_execute(pa_core *c, const char *s, pa_strbuf *buf, int *fail);
40
int pa_cli_command_execute(pa_core *c, const char *s, pa_strbuf *buf, pa_bool_t *fail);
42
42
/* Same as pa_cli_command_execute_line() but also take ifstate var. */
43
int pa_cli_command_execute_line_stateful(pa_core *c, const char *s, pa_strbuf *buf, int *fail, int *ifstate);
43
int pa_cli_command_execute_line_stateful(pa_core *c, const char *s, pa_strbuf *buf, pa_bool_t *fail, int *ifstate);