diff options
author | Richard Mudgett <rmudgett@digium.com> | 2013-06-24 21:40:52 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2013-06-24 21:40:52 +0000 |
commit | b5f18d167795f7792483bcf5f4f483bdfb8c9df3 (patch) | |
tree | 91a0a7f880fc1196229b78534b0f9297e0b9ab04 /res/res_stasis_test.c | |
parent | 463470bb6ea89dc102e5ebd0f9e72b182dbbf494 (diff) |
Fix menuselect display for stasis modules.
The menuselect parser is very simple. It looks for AST_MODULE_INFO and
uses any quoted string on that line as the module summary display.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_stasis_test.c')
-rw-r--r-- | res/res_stasis_test.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/res/res_stasis_test.c b/res/res_stasis_test.c index 372efbe94..58df8c145 100644 --- a/res/res_stasis_test.c +++ b/res/res_stasis_test.c @@ -103,8 +103,9 @@ struct stasis_message_sink *stasis_message_sink_create(void) * Why the roundabout way of exposing this via stasis_message_sink_cb()? Well, * it has to do with how we load modules. * - * Modules have their own metadata compiled into them in the AST_MODULE_INFO() - * block. This includes dependency information in the \c nonoptreq field. + * Modules have their own metadata compiled into them in the module info block + * at the end of the file. This includes dependency information in the + * \c nonoptreq field. * * Asterisk loads the module, inspects the field, then loads any needed * dependencies. This works because Asterisk passes \c RTLD_LAZY to the initial @@ -274,9 +275,7 @@ static int load_module(void) return AST_MODULE_LOAD_SUCCESS; } -AST_MODULE_INFO(ASTERISK_GPL_KEY, - AST_MODFLAG_GLOBAL_SYMBOLS | AST_MODFLAG_LOAD_ORDER, - "Stasis test utilities", +AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS | AST_MODFLAG_LOAD_ORDER, "Stasis test utilities", .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_APP_DEPEND, |