[asterisk-commits] trunk r20104 - /trunk/res/res_osp.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Apr 14 12:35:39 MST 2006


Author: rizzo
Date: Fri Apr 14 14:35:37 2006
New Revision: 20104

URL: http://svn.digium.com/view/asterisk?rev=20104&view=rev
Log:
partial fix of the module API to use the new method.
Still not complete as we need to take care of the usecount stuff.


Modified:
    trunk/res/res_osp.c

Modified: trunk/res/res_osp.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_osp.c?rev=20104&r1=20103&r2=20104&view=diff
==============================================================================
--- trunk/res/res_osp.c (original)
+++ trunk/res/res_osp.c Fri Apr 14 14:35:37 2006
@@ -1063,41 +1063,46 @@
 	return(RESULT_SUCCESS);
 }
 
-int load_module(void)
+static int load_module(void *mod)
 {
 	osp_load();
 	ast_cli_register(&osp_cli);
-	return(0);
-}
-
-int reload(void)
+	return 0;
+}
+
+static int reload(void *mod)
 {
 	ast_cli_unregister(&osp_cli);
 	osp_unload();
 	osp_load();
 	ast_cli_register(&osp_cli);
-	return(0);
-}
-
-int unload_module(void)
+	return 0;
+}
+
+static int unload_module(void *mod)
 {
 	ast_cli_unregister(&osp_cli);
 	osp_unload();
-	return(0);
-}
-
-const char *description(void)
-{
-	return("Open Settlement Protocol Support");
-}
-
+	return 0;
+}
+
+static const char *description(void)
+{
+	return "Open Settlement Protocol Support";
+}
+
+#if 0
+/* XXX usecount handling still needs to be fixed.
+ */
 int usecount(void)
 {
 	return(osp_usecount);
 }
-
-const char *key()
-{
-	return(ASTERISK_GPL_KEY);
-}
-
+#endif
+
+static const char *key(void)
+{
+	return ASTERISK_GPL_KEY;
+}
+
+STD_MOD(MOD_0, reload, NULL, NULL)



More information about the asterisk-commits mailing list