From d48b6e193b37cd0ad99ab94083d75f3023c700d0 Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Thu, 5 Mar 2009 21:38:32 +0000 Subject: [PATCH] Add docs and complete to mod_console git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12473 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/loggers/mod_console/mod_console.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mod/loggers/mod_console/mod_console.c b/src/mod/loggers/mod_console/mod_console.c index f5e5edade0..9e5ac669fe 100644 --- a/src/mod/loggers/mod_console/mod_console.c +++ b/src/mod/loggers/mod_console/mod_console.c @@ -328,8 +328,9 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_console_load) /* connect my internal structure to the blank pointer passed to me */ *module_interface = switch_loadable_module_create_module_interface(pool, modname); - SWITCH_ADD_API(api_interface, "console", "Console", console_api_function, ""); - + SWITCH_ADD_API(api_interface, "console", "Console", console_api_function, "loglevel [level]|colorize [on|off]"); + switch_console_set_complete("add console loglevel"); + switch_console_set_complete("add console colorize"); /* setup my logger function */ switch_log_bind_logger(switch_console_logger, SWITCH_LOG_DEBUG, SWITCH_TRUE);