diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-14 19:35:37 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-14 19:35:37 +0000 |
commit | 527113c4d0c2fa655398fd5efa688962b5c05149 (patch) | |
tree | 6987e037fce9e2a34fe275e939ec6cdd0bd68d75 /res/res_osp.c | |
parent | 607b2b6a47f8f18d17c69bd07f1d24a8e5fcdb40 (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: http://svn.digium.com/svn/asterisk/trunk@20104 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_osp.c')
-rw-r--r-- | res/res_osp.c | 25 |
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) |