summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-04-14 19:35:37 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-04-14 19:35:37 +0000
commit6d574f36ca840327c0252fd525cd026422de8188 (patch)
tree6987e037fce9e2a34fe275e939ec6cdd0bd68d75 /res
parent8d98d44e825d951d40b414654345242d79b6e9f3 (diff)
partial fix of the module API to use the new method.
Still not complete as we need to take care of the usecount stuff. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rw-r--r--res/res_osp.c25
1 files changed, 15 insertions, 10 deletions
diff --git a/res/res_osp.c b/res/res_osp.c
index ad8f590e4..b8a6fd8ac 100644
--- a/res/res_osp.c
+++ b/res/res_osp.c
@@ -1063,41 +1063,46 @@ static int osp_show(int fd, int argc, char *argv[])
return(RESULT_SUCCESS);
}
-int load_module(void)
+static int load_module(void *mod)
{
osp_load();
ast_cli_register(&osp_cli);
- return(0);
+ return 0;
}
-int reload(void)
+static int reload(void *mod)
{
ast_cli_unregister(&osp_cli);
osp_unload();
osp_load();
ast_cli_register(&osp_cli);
- return(0);
+ return 0;
}
-int unload_module(void)
+static int unload_module(void *mod)
{
ast_cli_unregister(&osp_cli);
osp_unload();
- return(0);
+ return 0;
}
-const char *description(void)
+static const char *description(void)
{
- return("Open Settlement Protocol Support");
+ return "Open Settlement Protocol Support";
}
+#if 0
+/* XXX usecount handling still needs to be fixed.
+ */
int usecount(void)
{
return(osp_usecount);
}
+#endif
-const char *key()
+static const char *key(void)
{
- return(ASTERISK_GPL_KEY);
+ return ASTERISK_GPL_KEY;
}
+STD_MOD(MOD_0, reload, NULL, NULL)