rendered paste bodyIndex: apps/app_followme.c
===================================================================
--- apps/app_followme.c (revision 20961)
+++ apps/app_followme.c (working copy)
@@ -57,7 +57,6 @@
#include "asterisk/astdb.h"
#include "asterisk/app.h"
-static char *tdesc = "Find-Me/Follow-Me Application";
static char *app = "FollowMe";
static char *synopsis =
"Find-Me/Follow-Me.";
@@ -930,7 +929,7 @@
return res;
}
-int unload_module(void)
+static int unload_module(void *mod)
{
struct ast_call_followme *f, *prior;
/* Free Memory. Yeah! I'm free! */
@@ -946,7 +945,7 @@
return ast_unregister_application(app);
}
-int load_module(void)
+static int load_module(void *mod)
{
if (reload_followme())
return ast_register_application(app, app_exec, synopsis, descrip);
@@ -954,25 +953,20 @@
return -1;
}
-char *description(void)
+static char *description(void)
{
- return tdesc;
+ return "Find-Me/Follow-Me Application";;
}
-int usecount(void)
+static int reload(void *mod)
{
- int res;
- STANDARD_USECOUNT(res);
- return res;
-}
-
-int reload(void)
-{
reload_followme();
return 0;
}
-char *key()
+static char *key()
{
return ASTERISK_GPL_KEY;
}
+
+STD_MOD(MOD_1, reload, NULL, NULL);