Add new ast_complete_applications function so that we can use it with the

'channel originate ... application <app>' CLI command.

(And yeah, I cleaned up some whitespace in res_clioriginate.c... big whoop,
wanna fight about it!?)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@196758 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Sean Bright
2009-05-26 14:36:11 +00:00
parent 9a83ed9d93
commit 3abe8a963e
3 changed files with 44 additions and 29 deletions

View File

@@ -1199,6 +1199,14 @@ int ast_hashtab_compare_contexts(const void *ah_a, const void *ah_b);
unsigned int ast_hashtab_hash_contexts(const void *obj);
/*! @} */
/*!
* \brief Command completion for the list of installed applications.
*
* This can be called from a CLI command completion function that wants to
* complete from the list of available applications.
*/
char *ast_complete_applications(const char *line, const char *word, int state);
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif