[asterisk-commits] branch bweschke/findme_followme r31611 - /team/bweschke/findme_followme/apps/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Jun 1 19:38:29 MST 2006


Author: bweschke
Date: Thu Jun  1 21:38:29 2006
New Revision: 31611

URL: http://svn.digium.com/view/asterisk?rev=31611&view=rev
Log:
 new loader changes. (thanks jcollie!)


Modified:
    team/bweschke/findme_followme/apps/app_followme.c

Modified: team/bweschke/findme_followme/apps/app_followme.c
URL: http://svn.digium.com/view/asterisk/team/bweschke/findme_followme/apps/app_followme.c?rev=31611&r1=31610&r2=31611&view=diff
==============================================================================
--- team/bweschke/findme_followme/apps/app_followme.c (original)
+++ team/bweschke/findme_followme/apps/app_followme.c Thu Jun  1 21:38:29 2006
@@ -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)
-{
-	return tdesc;
-}
-
-int usecount(void)
-{
-	int res;
-	STANDARD_USECOUNT(res);
-	return res;
-}
-
-int reload(void)
+static char *description(void)
+{
+	return "Find-Me/Follow-Me Application";
+}
+
+static int reload(void *mod)
 {
 	reload_followme();
 	return 0;	
 }
 
-char *key()
+static char *key(void)
 {
 	return ASTERISK_GPL_KEY;
 }
+
+STD_MOD(MOD_1, reload, NULL, NULL);



More information about the asterisk-commits mailing list