diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-21 02:11:39 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-21 02:11:39 +0000 |
commit | 8b0c007ad990aa27d9868da49215fd1076ac77cc (patch) | |
tree | 270b9c46c1e644483d6d2a35b509f43218ba3252 /channels/chan_misdn.c | |
parent | a42edc84034f91932a3e12d503e07f76a6eb498a (diff) |
merge new_loader_completion branch, including (at least):
- restructured build tree and makefiles to eliminate recursion problems
- support for embedded modules
- support for static builds
- simpler cross-compilation support
- simpler module/loader interface (no exported symbols)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_misdn.c')
-rw-r--r-- | channels/chan_misdn.c | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 54ac7bec8..9631a8cb5 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -26,6 +26,11 @@ * \ingroup channel_drivers */ +/*** MODULEINFO + <depend>isdnnet</depend> + <depend>misdn</depend> + <depend>suppserv</depend> + ***/ #include "asterisk.h" ASTERISK_FILE_VERSION(__FILE__, "$Revision$") @@ -283,7 +288,6 @@ static int pbx_start_chan(struct chan_list *ch); /* #define MISDN_DEBUG 1 */ -static char *desc = "Channel driver for mISDN Support (Bri/Pri)"; static const char misdn_type[] = "mISDN"; static int tracing = 0 ; @@ -4441,7 +4445,7 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data) static int g_config_initialized=0; -static int unload_module(void *mod) +static int unload_module(void) { /* First, take us out of the channel loop */ ast_log(LOG_VERBOSE, "-- Unregistering mISDN Channel Driver --\n"); @@ -4472,7 +4476,7 @@ static int unload_module(void *mod) return 0; } -static int load_module(void *mod) +static int load_module(void) { int i, port; @@ -4547,7 +4551,7 @@ static int load_module(void *mod) { if (ast_channel_register(&misdn_tech)) { ast_log(LOG_ERROR, "Unable to register channel class %s\n", misdn_type); - unload_module(mod); + unload_module(); return -1; } } @@ -4601,26 +4605,13 @@ static int load_module(void *mod) -static int reload(void *mod) +static int reload(void) { reload_config(); return 0; } -static const char *description(void) -{ - return desc; -} - -static const char *key(void) -{ - return ASTERISK_GPL_KEY; -} - - - - /*** SOME APPS ;)***/ static int misdn_facility_exec(struct ast_channel *chan, void *data) @@ -5099,4 +5090,8 @@ void chan_misdn_log(int level, int port, char *tmpl, ...) } } -STD_MOD(MOD_0, reload, NULL, NULL); +AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "Channel driver for mISDN Support (BRI/PRI)", + .load = load_module, + .unload = unload_module, + .reload = reload, + ); |