[asterisk-dev] func_module update

Denis Smirnov ds at seiros.ru
Mon Apr 17 11:43:09 MST 2006


Update to func_module.c in attached.

-- 
JID: ds at im.seiros.ru
ICQ: 58417635 (please, use jabber, if you can)

http://freesource.info/

-------------- next part --------------
--- ./func_module.c.orig	2006-04-17 22:15:07 +0400
+++ ./func_module.c	2006-04-17 22:39:52 +0400
@@ -64,29 +64,25 @@
 		"Returns \"1\" if module exists in memory, otherwise \"0\".\n",
 };
 
-static char *tdesc = "Checks if Asterisk module is loaded in memory";
 
-int unload_module(void)
+static int unload_module(void *mod)
 {
 	return ast_custom_function_unregister(&ifmodule_function);
 }
 
-int load_module(void)
+static int load_module(void *mod)
 {
 	return ast_custom_function_register(&ifmodule_function);
 }
 
-const char *description(void)
-{
-	return tdesc;
-}
-
-int usecount(void)
+static const char *description(void)
 {
-	return 0;
+	return "Checks if Asterisk module is loaded in memory";
 }
 
-const char *key()
+static const char *key(void)
 {
 	return ASTERISK_GPL_KEY;
 }
+
+STD_MOD(MOD_1 | NO_USECOUNT, NULL, NULL, NULL);


More information about the asterisk-dev mailing list