/* 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";
const char *description(void)
{
- return tdesc;
+ return "Asterisk Gateway Interface (AGI)";
+
}
int usecount(void)
return res;
}
-const char *key()
+const char *key(void)
{
return ASTERISK_GPL_KEY;
}
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"
const char *description(void)
{
- return tdesc;
+ return "Call origination from the CLI";
+
}
int usecount(void)
return 0;
}
-const char *key()
+const char *key(void)
{
return ASTERISK_GPL_KEY;
}
#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)
const char *description(void)
{
- return tdesc;
+ return "ODBC Configuration";
+
}
int usecount (void)
return 1;
}
-const char *key()
+const char *key(void)
{
return ASTERISK_GPL_KEY;
}
#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"
const char *description(void)
{
- return res_config_pgsql_desc;
+ return "Postgresql RealTime Configuration Driver";
+
}
int usecount(void)
return 0;
}
-const char *key()
+const char *key(void)
{
return ASTERISK_GPL_KEY;
}
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)
{
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;
}
return 1;
}
-const char *key()
+const char *key(void)
{
return ASTERISK_GPL_KEY;
}