diff options
author | Joshua Colp <jcolp@digium.com> | 2016-03-08 11:29:45 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-03-08 11:29:45 -0600 |
commit | 5cf2226e0123f7cfa40345098223f2fa1303454b (patch) | |
tree | 6a0acbbd9c7f696e36a69fe4d791823d0eb866e8 /include | |
parent | 760444a1f571b038fc0402a0d3588a477304d188 (diff) | |
parent | 0ec9fe54219f8ad8a1e2c6f0a17843dcf08b7451 (diff) |
Merge "main/cli.c: Refactor function to print seconds formatted"
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/cli.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asterisk/cli.h b/include/asterisk/cli.h index 82363c15f..0bda6665c 100644 --- a/include/asterisk/cli.h +++ b/include/asterisk/cli.h @@ -315,6 +315,17 @@ char **ast_cli_completion_matches(const char *, const char *); */ char *ast_complete_channels(const char *line, const char *word, int pos, int state, int rpos); +/*! + * \since 13.8 + * \brief Print on cli a duration in seconds in format + * %s year(s), %s week(s), %s day(s), %s hour(s), %s second(s) + * + * \param ast_cli_args fd to print by ast_cli + * \param duration The time (in seconds) to print + * \param prefix A Prefix string to add before of duration formatted + */ +void ast_cli_print_timestr_fromseconds(int fd, int seconds, const char *prefix); + #if defined(__cplusplus) || defined(c_plusplus) } #endif |