mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
normalize code in preparation to module changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -71,8 +71,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
/* Recycle some stuff from the CLI interface */
|
||||
#define fdprintf agi_debug_cli
|
||||
|
||||
static char *tdesc = "Asterisk Gateway Interface (AGI)";
|
||||
|
||||
static char *app = "AGI";
|
||||
|
||||
static char *eapp = "EAGI";
|
||||
@@ -2053,7 +2051,8 @@ int load_module(void)
|
||||
|
||||
const char *description(void)
|
||||
{
|
||||
return tdesc;
|
||||
return "Asterisk Gateway Interface (AGI)";
|
||||
|
||||
}
|
||||
|
||||
int usecount(void)
|
||||
@@ -2063,7 +2062,7 @@ int usecount(void)
|
||||
return res;
|
||||
}
|
||||
|
||||
const char *key()
|
||||
const char *key(void)
|
||||
{
|
||||
return ASTERISK_GPL_KEY;
|
||||
}
|
||||
|
@@ -44,8 +44,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$");
|
||||
|
||||
STANDARD_USECOUNT_DECL;
|
||||
|
||||
static char *tdesc = "Call origination from the CLI";
|
||||
|
||||
static char orig_help[] =
|
||||
" There are two ways to use this command. A call can be originated between a\n"
|
||||
"channel and a specific application, or between a channel and an extension in\n"
|
||||
@@ -177,7 +175,8 @@ int load_module(void)
|
||||
|
||||
const char *description(void)
|
||||
{
|
||||
return tdesc;
|
||||
return "Call origination from the CLI";
|
||||
|
||||
}
|
||||
|
||||
int usecount(void)
|
||||
@@ -185,7 +184,7 @@ int usecount(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *key()
|
||||
const char *key(void)
|
||||
{
|
||||
return ASTERISK_GPL_KEY;
|
||||
}
|
||||
|
@@ -48,8 +48,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
#include "asterisk/res_odbc.h"
|
||||
#include "asterisk/utils.h"
|
||||
|
||||
static char *tdesc = "ODBC Configuration";
|
||||
|
||||
LOCAL_USER_DECL;
|
||||
|
||||
static struct ast_variable *realtime_odbc(const char *database, const char *table, va_list ap)
|
||||
@@ -527,7 +525,8 @@ int load_module (void)
|
||||
|
||||
const char *description(void)
|
||||
{
|
||||
return tdesc;
|
||||
return "ODBC Configuration";
|
||||
|
||||
}
|
||||
|
||||
int usecount (void)
|
||||
@@ -536,7 +535,7 @@ int usecount (void)
|
||||
return 1;
|
||||
}
|
||||
|
||||
const char *key()
|
||||
const char *key(void)
|
||||
{
|
||||
return ASTERISK_GPL_KEY;
|
||||
}
|
||||
|
@@ -41,8 +41,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
#include "asterisk/utils.h"
|
||||
#include "asterisk/cli.h"
|
||||
|
||||
static char *res_config_pgsql_desc = "Postgresql RealTime Configuration Driver";
|
||||
|
||||
AST_MUTEX_DEFINE_STATIC(pgsql_lock);
|
||||
|
||||
#define RES_CONFIG_PGSQL_CONF "res_pgsql.conf"
|
||||
@@ -695,7 +693,8 @@ int parse_config(void)
|
||||
|
||||
const char *description(void)
|
||||
{
|
||||
return res_config_pgsql_desc;
|
||||
return "Postgresql RealTime Configuration Driver";
|
||||
|
||||
}
|
||||
|
||||
int usecount(void)
|
||||
@@ -709,7 +708,7 @@ int usecount(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *key()
|
||||
const char *key(void)
|
||||
{
|
||||
return ASTERISK_GPL_KEY;
|
||||
}
|
||||
|
@@ -41,8 +41,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
|
||||
STANDARD_USECOUNT_DECL;
|
||||
|
||||
static char *desc = "File format conversion CLI command";
|
||||
|
||||
/*! \brief Split the filename to basename and extension */
|
||||
static int split_ext(char *filename, char **name, char **ext)
|
||||
{
|
||||
@@ -146,19 +144,18 @@ int load_module(void)
|
||||
|
||||
const char *description(void)
|
||||
{
|
||||
return desc;
|
||||
return "File format conversion CLI command";
|
||||
|
||||
}
|
||||
|
||||
int usecount(void)
|
||||
{
|
||||
int res;
|
||||
|
||||
STANDARD_USECOUNT(res);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
const char *key()
|
||||
const char *key(void)
|
||||
{
|
||||
return ASTERISK_GPL_KEY;
|
||||
}
|
||||
|
@@ -614,7 +614,7 @@ int usecount(void)
|
||||
return 1;
|
||||
}
|
||||
|
||||
const char *key()
|
||||
const char *key(void)
|
||||
{
|
||||
return ASTERISK_GPL_KEY;
|
||||
}
|
||||
|
Reference in New Issue
Block a user