mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 03:02:15 +00:00
menuselect: Various menuselect enhancements
* Add 'external' as a support level.
* Add ability for module directories to add entries to the menu
by adding members to the <module_prefix>/<module_prefix>.xml file.
* Expand the description field to 3 lines in the ncurses implementation.
* Allow the description field to wrap in the newt implementation.
* Add description field to the gtk implementation.
Change-Id: I7f9600a1984a42ce0696db574c1051bc9ad7c808
(cherry picked from commit 90f445729d
)
This commit is contained in:
@@ -246,6 +246,10 @@ static enum support_level_values string_to_support_level(const char *support_lev
|
||||
return SUPPORT_DEPRECATED;
|
||||
}
|
||||
|
||||
if (!strcasecmp(support_level, "external")) {
|
||||
return SUPPORT_EXTERNAL;
|
||||
}
|
||||
|
||||
return SUPPORT_UNSPECIFIED;
|
||||
}
|
||||
|
||||
@@ -259,6 +263,8 @@ static const char *support_level_to_string(enum support_level_values support_lev
|
||||
return "Extended";
|
||||
case SUPPORT_DEPRECATED:
|
||||
return "Deprecated";
|
||||
case SUPPORT_EXTERNAL:
|
||||
return "External";
|
||||
default:
|
||||
return "Unspecified";
|
||||
}
|
||||
|
Reference in New Issue
Block a user