diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-13 05:24:33 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-13 05:24:33 +0000 |
commit | 04b29acc66b27c26c51f1bb2ee44aeba9a22f89a (patch) | |
tree | 5c4480300c1a7e0d4607858b6ddd720b708d1042 /include/asterisk | |
parent | dfc2babc693a8a66256ec4983ce30a6404857cf3 (diff) |
Properly handle the case where read() may return the text for more than one
CLI command at once for a remote console.
(closes issue #10888)
Reported by: jamesgolovich
Patches:
asterisk-climultiple.diff.txt uploaded by jamesgolovich (license 176)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@85532 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/cli.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/cli.h b/include/asterisk/cli.h index e2a6f818b..9a7b53a36 100644 --- a/include/asterisk/cli.h +++ b/include/asterisk/cli.h @@ -108,6 +108,14 @@ char *ast_cli_complete(const char *word, char *const choices[], int pos); */ int ast_cli_command(int fd, const char *s); +/*! + * \brief Executes multiple CLI commands + * Interpret strings separated by '\0' and execute each one, sending output to fd + * \param size is the total size of the string + * \retval number of commands executed + */ +int ast_cli_command_multiple(int fd, size_t size, const char *s); + /*! \brief Registers a command or an array of commands * \param e which cli entry to register * Register your own command |