[asterisk-commits] trunk r17866 - /trunk/apps/app_cdr.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Apr 6 08:48:08 MST 2006


Author: rizzo
Date: Thu Apr  6 10:48:06 2006
New Revision: 17866

URL: http://svn.digium.com/view/asterisk?rev=17866&view=rev
Log:
convert one more file...


Modified:
    trunk/apps/app_cdr.c

Modified: trunk/apps/app_cdr.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_cdr.c?rev=17866&r1=17865&r2=17866&view=diff
==============================================================================
--- trunk/apps/app_cdr.c (original)
+++ trunk/apps/app_cdr.c Thu Apr  6 10:48:06 2006
@@ -28,6 +28,8 @@
 #include <sys/types.h>
 #include <stdlib.h>
 
+#define STATIC_MODULE
+
 #include "asterisk.h"
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
@@ -35,9 +37,6 @@
 #include "asterisk/channel.h"
 #include "asterisk/module.h"
 #include "asterisk/pbx.h"
-
-
-static char *tdesc = "Tell Asterisk to not maintain a CDR for the current call";
 
 static char *nocdr_descrip = 
 "  NoCDR(): This application will tell Asterisk not to maintain a CDR for the\n"
@@ -64,7 +63,7 @@
 	return 0;
 }
 
-int unload_module(void)
+STATIC_MODULE int unload_module(void)
 {
 	int res;
 
@@ -75,24 +74,26 @@
 	return res;
 }
 
-int load_module(void)
+STATIC_MODULE int load_module(void)
 {
 	return ast_register_application(nocdr_app, nocdr_exec, nocdr_synopsis, nocdr_descrip);
 }
 
-char *description(void)
+STATIC_MODULE char *description(void)
 {
-	return tdesc;
+	return "Tell Asterisk to not maintain a CDR for the current call";
 }
 
-int usecount(void)
+STATIC_MODULE int usecount(void)
 {
 	int res;
 	STANDARD_USECOUNT(res);
 	return res;
 }
 
-char *key()
+STATIC_MODULE char *key(void)
 {
 	return ASTERISK_GPL_KEY;
 }
+
+STD_MOD(MOD_1, NULL, NULL, NULL);



More information about the asterisk-commits mailing list