aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_record.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-06 09:24:02 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-06 09:24:02 +0000
commitf229a1fc568bf2de4fef690dc56e553af01bb17e (patch)
tree71d4d222593cab8b3f2b8ef14265d0723e3f2b80 /apps/app_record.c
parente74b126e91e7bf13630d1ca21f99237f7a346716 (diff)
convert a couple of applications to the new module style
(STATIC_MODULE) to show what needs to be changed. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17791 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_record.c')
-rw-r--r--apps/app_record.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/apps/app_record.c b/apps/app_record.c
index 07167278c..ddf94a9eb 100644
--- a/apps/app_record.c
+++ b/apps/app_record.c
@@ -29,6 +29,8 @@
#include <stdio.h>
#include <string.h>
+#define STATIC_MODULE
+
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
@@ -341,7 +343,7 @@ static int record_exec(struct ast_channel *chan, void *data)
return res;
}
-int unload_module(void)
+STATIC_MODULE int unload_module(void)
{
int res;
@@ -352,24 +354,26 @@ int unload_module(void)
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);