diff options
Diffstat (limited to 'funcs/func_channel.c')
-rw-r--r-- | funcs/func_channel.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/funcs/func_channel.c b/funcs/func_channel.c index b4f1ec771..2a377b52f 100644 --- a/funcs/func_channel.c +++ b/funcs/func_channel.c @@ -171,26 +171,14 @@ static struct ast_custom_function channel_function = { .write = func_channel_write, }; -static char *tdesc = "Channel information dialplan function"; - -static int unload_module(void *mod) +static int unload_module(void) { return ast_custom_function_unregister(&channel_function); } -static int load_module(void *mod) +static int load_module(void) { return ast_custom_function_register(&channel_function); } -static const char *description(void) -{ - return tdesc; -} - -static const char *key(void) -{ - return ASTERISK_GPL_KEY; -} - -STD_MOD(MOD_1 | NO_USECOUNT, NULL, NULL, NULL); +AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Channel information dialplan function"); |