From 24f3cc1e855de344b653488cd23097cf08f0a0de Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 5 Sep 2006 18:52:16 +0000 Subject: [PATCH] add some syntax and descriptions of api commands and applications. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2518 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- .../applications/mod_dptools/mod_dptools.c | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index b59510fd4c..900232a337 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -123,30 +123,40 @@ static switch_api_interface_t dptools_api_interface = { static const switch_application_interface_t set_application_interface = { /*.interface_name */ "set", - /*.application_function */ set_function + /*.application_function */ set_function, + /* long_desc */ "Set a channel varaible for the channel calling the application.", + /* short_desc */ "Set a channel varaible.", + /* syntax */ "=[|_UNDEF_]", + /*.next */ NULL }; static const switch_application_interface_t answer_application_interface = { /*.interface_name */ "answer", /*.application_function */ answer_function, - NULL,NULL,NULL, - &set_application_interface + /* long_desc */ "Answer the call for a channel.", + /* short_desc */ "Answer the call.", + /* syntax */ "", + /*.next */ &set_application_interface }; static const switch_application_interface_t strftime_application_interface = { /*.interface_name */ "strftime", /*.application_function */ strftime_function, - NULL,NULL,NULL, - &answer_application_interface + /* long_desc */ NULL, + /* short_desc */ NULL, + /* syntax */ NULL, + /*.next */ &answer_application_interface }; static const switch_application_interface_t sleep_application_interface = { /*.interface_name */ "sleep", /*.application_function */ sleep_function, - NULL,NULL,NULL, - &strftime_application_interface + /* long_desc */ "Pause the channel for a given number of milliseconds, consuming the audio for that period of time.", + /* short_desc */ "Pause a channel", + /* syntax */ "", + /* next */ &strftime_application_interface }; static const switch_loadable_module_interface_t mod_dptools_module_interface = {