[asterisk-commits] trunk r19220 - /trunk/apps/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Apr 11 08:19:39 MST 2006
Author: rizzo
Date: Tue Apr 11 10:19:34 2006
New Revision: 19220
URL: http://svn.digium.com/view/asterisk?rev=19220&view=rev
Log:
normalize code preparing for loader changes
Modified:
trunk/apps/app_adsiprog.c
trunk/apps/app_alarmreceiver.c
trunk/apps/app_amd.c
trunk/apps/app_authenticate.c
trunk/apps/app_chanisavail.c
trunk/apps/app_channelredirect.c
trunk/apps/app_controlplayback.c
trunk/apps/app_db.c
trunk/apps/app_dial.c
Modified: trunk/apps/app_adsiprog.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_adsiprog.c?rev=19220&r1=19219&r2=19220&view=diff
==============================================================================
--- trunk/apps/app_adsiprog.c (original)
+++ trunk/apps/app_adsiprog.c Tue Apr 11 10:19:34 2006
@@ -48,8 +48,6 @@
#include "asterisk/options.h"
#include "asterisk/utils.h"
#include "asterisk/lock.h"
-
-static char *tdesc = "Asterisk ADSI Programming Application";
static char *app = "ADSIProg";
@@ -1588,7 +1586,7 @@
const char *description(void)
{
- return tdesc;
+ return "Asterisk ADSI Programming Application";
}
int usecount(void)
@@ -1598,7 +1596,7 @@
return res;
}
-const char *key()
+const char *key(void)
{
return ASTERISK_GPL_KEY;
}
Modified: trunk/apps/app_alarmreceiver.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_alarmreceiver.c?rev=19220&r1=19219&r2=19220&view=diff
==============================================================================
--- trunk/apps/app_alarmreceiver.c (original)
+++ trunk/apps/app_alarmreceiver.c Tue Apr 11 10:19:34 2006
@@ -67,8 +67,6 @@
};
typedef struct event_node event_node_t;
-
-static char *tdesc = "Alarm Receiver for Asterisk";
static char *app = "AlarmReceiver";
@@ -839,7 +837,7 @@
const char *description(void)
{
- return tdesc;
+ return "Alarm Receiver for Asterisk";
}
int usecount(void)
@@ -849,7 +847,7 @@
return res;
}
-const char *key()
+const char *key(void)
{
return ASTERISK_GPL_KEY;
}
Modified: trunk/apps/app_amd.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_amd.c?rev=19220&r1=19219&r2=19220&view=diff
==============================================================================
--- trunk/apps/app_amd.c (original)
+++ trunk/apps/app_amd.c Tue Apr 11 10:19:34 2006
@@ -35,7 +35,6 @@
#include "asterisk/app.h"
-static char *tdesc = "Answering Machine Detection Application";
static char *app = "AMD";
static char *synopsis = "Attempts to detect answering machines";
static char *descrip =
@@ -413,7 +412,7 @@
const char *description(void)
{
- return tdesc;
+ return "Answering Machine Detection Application";
}
int usecount(void)
@@ -423,7 +422,7 @@
return res;
}
-const char *key()
+const char *key(void)
{
return ASTERISK_GPL_KEY;
}
Modified: trunk/apps/app_authenticate.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_authenticate.c?rev=19220&r1=19219&r2=19220&view=diff
==============================================================================
--- trunk/apps/app_authenticate.c (original)
+++ trunk/apps/app_authenticate.c Tue Apr 11 10:19:34 2006
@@ -62,7 +62,6 @@
AST_APP_OPTION('r', OPT_REMOVE),
});
-static char *tdesc = "Authentication Application";
static char *app = "Authenticate";
@@ -254,7 +253,7 @@
const char *description(void)
{
- return tdesc;
+ return "Authentication Application";
}
int usecount(void)
@@ -264,7 +263,7 @@
return res;
}
-const char *key()
+const char *key(void)
{
return ASTERISK_GPL_KEY;
}
Modified: trunk/apps/app_chanisavail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_chanisavail.c?rev=19220&r1=19219&r2=19220&view=diff
==============================================================================
--- trunk/apps/app_chanisavail.c (original)
+++ trunk/apps/app_chanisavail.c Tue Apr 11 10:19:34 2006
@@ -47,8 +47,6 @@
#include "asterisk/app.h"
#include "asterisk/devicestate.h"
#include "asterisk/options.h"
-
-static char *tdesc = "Check channel availability";
static char *app = "ChanIsAvail";
@@ -175,7 +173,7 @@
const char *description(void)
{
- return tdesc;
+ return "Check channel availability";
}
int usecount(void)
@@ -185,7 +183,7 @@
return res;
}
-const char *key()
+const char *key(void)
{
return ASTERISK_GPL_KEY;
}
Modified: trunk/apps/app_channelredirect.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_channelredirect.c?rev=19220&r1=19219&r2=19220&view=diff
==============================================================================
--- trunk/apps/app_channelredirect.c (original)
+++ trunk/apps/app_channelredirect.c Tue Apr 11 10:19:34 2006
@@ -41,7 +41,6 @@
#include "asterisk/app.h"
#include "asterisk/features.h"
-static char *tdesc = "Channel Redirect";
static char *app = "ChannelRedirect";
static char *synopsis = "Redirects given channel to a dialplan target.";
static char *descrip =
@@ -139,7 +138,7 @@
const char *description(void)
{
- return tdesc;
+ return "Channel Redirect";
}
int usecount(void)
@@ -151,7 +150,7 @@
return res;
}
-const char *key()
+const char *key(void)
{
return ASTERISK_GPL_KEY;
}
Modified: trunk/apps/app_controlplayback.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_controlplayback.c?rev=19220&r1=19219&r2=19220&view=diff
==============================================================================
--- trunk/apps/app_controlplayback.c (original)
+++ trunk/apps/app_controlplayback.c Tue Apr 11 10:19:34 2006
@@ -43,8 +43,6 @@
#include "asterisk/translate.h"
#include "asterisk/utils.h"
#include "asterisk/options.h"
-
-static const char *tdesc = "Control Playback Application";
static const char *app = "ControlPlayback";
@@ -174,7 +172,7 @@
const char *description(void)
{
- return (char *) tdesc;
+ return "Control Playback Application";
}
int usecount(void)
@@ -185,7 +183,7 @@
return res;
}
-const char *key()
+const char *key(void)
{
return ASTERISK_GPL_KEY;
}
Modified: trunk/apps/app_db.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_db.c?rev=19220&r1=19219&r2=19220&view=diff
==============================================================================
--- trunk/apps/app_db.c (original)
+++ trunk/apps/app_db.c Tue Apr 11 10:19:34 2006
@@ -47,8 +47,6 @@
#include "asterisk/astdb.h"
#include "asterisk/lock.h"
#include "asterisk/options.h"
-
-static char *tdesc = "Database Access Functions";
static char *d_descrip =
" DBdel(family/key): This applicaiton will delete a key from the Asterisk\n"
@@ -169,7 +167,7 @@
const char *description(void)
{
- return tdesc;
+ return "Database Access Functions";
}
int usecount(void)
@@ -179,7 +177,7 @@
return res;
}
-const char *key()
+const char *key(void)
{
return ASTERISK_GPL_KEY;
}
Modified: trunk/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_dial.c?rev=19220&r1=19219&r2=19220&view=diff
==============================================================================
--- trunk/apps/app_dial.c (original)
+++ trunk/apps/app_dial.c Tue Apr 11 10:19:34 2006
@@ -60,8 +60,6 @@
#include "asterisk/manager.h"
#include "asterisk/privacy.h"
#include "asterisk/stringfields.h"
-
-static char *tdesc = "Dialing Application";
static char *app = "Dial";
@@ -1730,7 +1728,8 @@
STATIC_MODULE const char *description(void)
{
- return tdesc;
+ return "Dialing Application";
+
}
STATIC_MODULE int usecount(void)
More information about the asterisk-commits
mailing list