[svn-commits] trunk r17791 - in /trunk/apps: app_dial.c app_record.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Apr 6 02:24:04 MST 2006


Author: rizzo
Date: Thu Apr  6 04:24:02 2006
New Revision: 17791

URL: http://svn.digium.com/view/asterisk?rev=17791&view=rev
Log:
convert a couple of applications to the new module style
(STATIC_MODULE) to show what needs to be changed.


Modified:
    trunk/apps/app_dial.c
    trunk/apps/app_record.c

Modified: trunk/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_dial.c?rev=17791&r1=17790&r2=17791&view=diff
==============================================================================
--- trunk/apps/app_dial.c (original)
+++ trunk/apps/app_dial.c Thu Apr  6 04:24:02 2006
@@ -35,6 +35,7 @@
 #include <sys/signal.h>
 #include <netinet/in.h>
 
+#define STATIC_MODULE
 #include "asterisk.h"
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
@@ -1719,7 +1720,7 @@
 
 }
 
-int unload_module(void)
+STATIC_MODULE int unload_module(void)
 {
 	int res;
 
@@ -1731,7 +1732,7 @@
 	return res;
 }
 
-int load_module(void)
+STATIC_MODULE int load_module(void)
 {
 	int res;
 
@@ -1741,19 +1742,21 @@
 	return res;
 }
 
-char *description(void)
+STATIC_MODULE char *description(void)
 {
 	return tdesc;
 }
 
-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);

Modified: trunk/apps/app_record.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_record.c?rev=17791&r1=17790&r2=17791&view=diff
==============================================================================
--- trunk/apps/app_record.c (original)
+++ trunk/apps/app_record.c Thu Apr  6 04:24:02 2006
@@ -28,6 +28,8 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+
+#define	STATIC_MODULE
 
 #include "asterisk.h"
 
@@ -341,7 +343,7 @@
 	return res;
 }
 
-int unload_module(void)
+STATIC_MODULE int unload_module(void)
 {
 	int res;
 
@@ -352,24 +354,26 @@
 	return res;	
 }
 
-int load_module(void)
+STATIC_MODULE int load_module(void)
 {
 	return ast_register_application(app, record_exec, synopsis, descrip);
 }
 
-char *description(void)
+STATIC_MODULE char *description(void)
 {
 	return tdesc;
 }
 
-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 svn-commits mailing list