mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-21 10:44:16 +00:00
cleanup tab completion more and introduce new callback based expansion functions to do real time tab completion in some areas, needs people to add more funcs etc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15952 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
7d6f7597d8
commit
4a86f888be
9 files changed
+476
-156
No files matched your search
@@ -3647,12 +3647,10 @@ void sofia_glue_release_profile__(const char *file, const char *func, int line,
|
||||
switch_status_t sofia_glue_add_profile(char *key, sofia_profile_t *profile)
|
||||
{
|
||||
switch_status_t status = SWITCH_STATUS_FALSE;
|
||||
char cbuf[512] = "";
|
||||
|
||||
switch_mutex_lock(mod_sofia_globals.hash_mutex);
|
||||
if (!switch_core_hash_find(mod_sofia_globals.profile_hash, key)) {
|
||||
status = switch_core_hash_insert(mod_sofia_globals.profile_hash, key, profile);
|
||||
switch_snprintf(cbuf, sizeof(cbuf), "add sofia profile %s", key);
|
||||
switch_console_set_complete(cbuf);
|
||||
}
|
||||
switch_mutex_unlock(mod_sofia_globals.hash_mutex);
|
||||
|
||||
@@ -3721,7 +3719,6 @@ void sofia_glue_del_profile(sofia_profile_t *profile)
|
||||
const void *var;
|
||||
void *val;
|
||||
sofia_profile_t *pptr;
|
||||
char cbuf[512] = "";
|
||||
|
||||
switch_mutex_lock(mod_sofia_globals.hash_mutex);
|
||||
if (mod_sofia_globals.profile_hash) {
|
||||
@@ -3729,8 +3726,6 @@ void sofia_glue_del_profile(sofia_profile_t *profile)
|
||||
switch_hash_this(hi, &var, NULL, &val);
|
||||
if ((pptr = (sofia_profile_t *) val) && pptr == profile) {
|
||||
aliases[i++] = strdup((char *) var);
|
||||
switch_snprintf(cbuf, sizeof(cbuf), "del sofia profile %s", var);
|
||||
switch_console_set_complete(cbuf);
|
||||
if (i == 512) {
|
||||
abort();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user