wslua: Update wslua_register_menu() documentation
Add missing group values. Update regex to match TELEPHONY_MTP3. Change-Id: I709a416e30d79c2de69887548015a3c1ecfe5bab Reviewed-on: https://code.wireshark.org/review/31779 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
7d4b47a073
commit
2b7875b905
|
@ -255,7 +255,7 @@ while(<STAT_GROUPS>) {
|
||||||
# need to skip matching words in comments, and get to the enum
|
# need to skip matching words in comments, and get to the enum
|
||||||
if (/^typedef enum \{/) { $foundit = 1; }
|
if (/^typedef enum \{/) { $foundit = 1; }
|
||||||
# the problem here is we need to pick carefully, so we don't break existing scripts
|
# the problem here is we need to pick carefully, so we don't break existing scripts
|
||||||
if ($foundit && /REGISTER_([A-Z]+)_GROUP_(CONVERSATION|RESPONSE|ENDPOINT|[A-Z_]+)/) {
|
if ($foundit && /REGISTER_([A-Z]+)_GROUP_(CONVERSATION|RESPONSE|ENDPOINT|[A-Z0-9_]+)/) {
|
||||||
$menu_groups .= "MENU_$1_$2 = $menu_i\n";
|
$menu_groups .= "MENU_$1_$2 = $menu_i\n";
|
||||||
$menu_groups =~ s/_NONE//;
|
$menu_groups =~ s/_NONE//;
|
||||||
$menu_i++;
|
$menu_i++;
|
||||||
|
|
|
@ -71,8 +71,10 @@ WSLUA_FUNCTION wslua_register_menu(lua_State* L) { /* Register a menu item in o
|
||||||
* MENU_STAT_ENDPOINT (Statistics/Endpoint List),
|
* MENU_STAT_ENDPOINT (Statistics/Endpoint List),
|
||||||
* MENU_STAT_RESPONSE (Statistics/Service Response Time),
|
* MENU_STAT_RESPONSE (Statistics/Service Response Time),
|
||||||
* MENU_STAT_TELEPHONY (Telephony),
|
* MENU_STAT_TELEPHONY (Telephony),
|
||||||
|
* MENU_STAT_TELEPHONY_ANSI (Telephony/ANSI),
|
||||||
* MENU_STAT_TELEPHONY_GSM (Telephony/GSM),
|
* MENU_STAT_TELEPHONY_GSM (Telephony/GSM),
|
||||||
* MENU_STAT_TELEPHONY_LTE (Telephony/LTE),
|
* MENU_STAT_TELEPHONY_LTE (Telephony/LTE),
|
||||||
|
* MENU_STAT_TELEPHONY_MTP3 (Telephony/MTP3),
|
||||||
* MENU_STAT_TELEPHONY_SCTP (Telephony/SCTP),
|
* MENU_STAT_TELEPHONY_SCTP (Telephony/SCTP),
|
||||||
* MENU_ANALYZE (Analyze),
|
* MENU_ANALYZE (Analyze),
|
||||||
* MENU_ANALYZE_CONVERSATION (Analyze/Conversation Filter),
|
* MENU_ANALYZE_CONVERSATION (Analyze/Conversation Filter),
|
||||||
|
|
Loading…
Reference in New Issue