diff options
author | Hadriel Kaplan <hadrielk@yahoo.com> | 2014-09-29 11:34:46 -0400 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-09-29 15:50:18 +0000 |
commit | 97d2030cd563ebd29aed2ac6b4bec41963144bd5 (patch) | |
tree | 4ed7106671652a514d3ded23e333b3fb017f9038 | |
parent | aef88f49590466f9dee2998e53eca3a73188b6cb (diff) |
Fix lua bindings for timestamp precision
The changes to the timestamp define names broke the init.lua file
generation. Change-id Id0c27b31c5 tried to fix this, but would break
backwards compatibility of exisitng Lua scripts. This commit fixes
that change by adding the timestamp variables in both a new Lua table
as well as the old filetypes table.
Change-Id: I74749acb51dc85094e8c63b240a1951bd4cc0330
Reviewed-on: https://code.wireshark.org/review/4370
Reviewed-by: Evan Huus <eapache@gmail.com>
-rwxr-xr-x | epan/wslua/make-init-lua.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/wslua/make-init-lua.pl b/epan/wslua/make-init-lua.pl index cf63863a82..457d5331b5 100755 --- a/epan/wslua/make-init-lua.pl +++ b/epan/wslua/make-init-lua.pl @@ -99,6 +99,8 @@ while(<WTAP_H>) { if ( /^#define WTAP_TSPREC_([A-Z0-9_]+)\s+(\d+)/ ) { $wtap_tsprecs_table .= "\t[\"$1\"] = $2,\n"; + # for backwards compatibility we need to add them to the filetypes table too + $wtap_filetypes_table .= "\t[\"TSPREC_$1\"] = $2,\n"; } if ( /^#define WTAP_COMMENT_([A-Z0-9_]+)\s+(0x\d+)/ ) { |