add syntax to api structures, use them for usage returns, do more checking on valid usage and cleanup some output of api commands.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3001 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2006-10-08 07:11:42 +00:00
1 parent 2b53e80e34
commit c822f94125
6 files changed
+83 -82

No files matched your search

@@ -33,7 +33,6 @@
static const char modname[] = "mod_dptools";
static void transfer_function(switch_core_session_t *session, char *data)
{
int argc;
@@ -133,7 +132,7 @@ static switch_api_interface_t dptools_api_interface = {
/*.interface_name */ "strftime",
/*.desc */ "strftime",
/*.function */ strftime_api_function,
/*.syntax */ NULL,
/*.syntax */ "strftime <format_string>",
/*.next */ NULL
};