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_jingle.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_jingle.c')
-rw-r--r-- | channels/chan_jingle.c | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/channels/chan_jingle.c b/channels/chan_jingle.c index bfa79e454..b296334ed 100644 --- a/channels/chan_jingle.c +++ b/channels/chan_jingle.c @@ -161,7 +161,6 @@ struct jingle_container { static const char desc[] = "Jingle Channel"; static const char type[] = "Jingle"; -static const char tdesc[] = "Jingle Channel Driver"; static int usecnt = 0; AST_MUTEX_DEFINE_STATIC(usecnt_lock); @@ -192,7 +191,7 @@ static int jingle_get_codec(struct ast_channel *chan); /*! \brief PBX interface structure for channel registration */ static const struct ast_channel_tech jingle_tech = { .type = type, - .description = tdesc, + .description = "Jingle Channel Driver", .capabilities = ((AST_FORMAT_MAX_AUDIO << 1) - 1), .requester = jingle_request, .send_digit = jingle_digit, @@ -1652,7 +1651,7 @@ static int jingle_load_config(void) } /*! \brief Load module into PBX, register channel */ -static int load_module(void *mod) +static int load_module(void) { ASTOBJ_CONTAINER_INIT(&jingles); if (!jingle_load_config()) { @@ -1684,13 +1683,13 @@ static int load_module(void *mod) } /*! \brief Reload module */ -static int reload(void *mod) +static int reload(void) { return 0; } /*! \brief Unload the jingle channel from Asterisk */ -static int unload_module(void *mod) +static int unload_module(void) { struct jingle_pvt *privates = NULL; @@ -1721,14 +1720,8 @@ static int unload_module(void *mod) return 0; } -static const char *key(void) -{ - return ASTERISK_GPL_KEY; -} - -static const char *description(void) -{ - return desc; -} - -STD_MOD(MOD_1, reload, NULL, NULL); +AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "Jingle Channel Driver", + .load = load_module, + .unload = unload_module, + .reload = reload, + ); |