diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-05-26 23:39:33 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-05-26 23:39:33 +0000 |
commit | d949983845cdc514aebe08cf43cfc13c49495ea8 (patch) | |
tree | ecbed713ba2479f7c105148e382b2297150ccf9a /src/pulsecore/cli-command.h | |
parent | 4d88fcd59da84ac4f09113855c8f15384a4e05c3 (diff) |
Add a new meta command ".ifexists" to the CLI language, to execute commands only if a specified file exists. Original patch from cjvdb. Closes #36
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1456 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/cli-command.h')
-rw-r--r-- | src/pulsecore/cli-command.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pulsecore/cli-command.h b/src/pulsecore/cli-command.h index 10d50f37..01bca8be 100644 --- a/src/pulsecore/cli-command.h +++ b/src/pulsecore/cli-command.h @@ -39,4 +39,7 @@ int pa_cli_command_execute_file(pa_core *c, const char *fn, pa_strbuf *buf, int /* Split the specified string into lines and run pa_cli_command_execute_line() for each. */ int pa_cli_command_execute(pa_core *c, const char *s, pa_strbuf *buf, int *fail); +/* Same as pa_cli_command_execute_line() but also take ifstate var. */ +int pa_cli_command_execute_line_stateful(pa_core *c, const char *s, pa_strbuf *buf, int *fail, int *ifstate); + #endif |