Wireshark-commits: [Wireshark-commits] master b894c53: Add an API to get a description of a compres
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=b894c53d5ea1395e042bb05e471d651af486dfab
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark
Commits:
b894c53 by Guy Harris (guy@xxxxxxxxxxxx):
Add an API to get a description of a compression type, and use it.
Add wtap_compression_type_description(), which returns NULL for
WTAP_UNCOMPRESSED and a descriptive string for other compression types.
Instead of checking for WTAP_GZIP_COMPRESSED and appending "(gzip
compressed)", just pass the compression type to
wtap_compression_type_description() and, if the result is non-null,
append its result, wrapped in parentheses, with a space before the left
parenthesis.
Change-Id: I79a999c7838a883953795d5cbab009966e14b65e
Reviewed-on: https://code.wireshark.org/review/30666
Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
Actions performed:
from eea4997 ZigBee: Fixed incorrect field type
add b894c53 Add an API to get a description of a compression type, and use it.
Summary of changes:
capinfos.c | 14 ++++++++++----
ui/qt/capture_file_properties_dialog.cpp | 5 +++--
ui/qt/gsm_map_summary_dialog.cpp | 5 +++--
ui/qt/mtp3_summary_dialog.cpp | 5 +++--
ui/qt/wireshark_de.ts | 12 ------------
ui/qt/wireshark_en.ts | 12 ------------
ui/qt/wireshark_fr.ts | 12 ------------
ui/qt/wireshark_it.ts | 12 ------------
ui/qt/wireshark_ja_JP.ts | 12 ------------
ui/qt/wireshark_pl.ts | 12 ------------
ui/qt/wireshark_zh_CN.ts | 12 ------------
wiretap/wtap.c | 12 ++++++++++++
wiretap/wtap.h | 5 ++++-
13 files changed, 35 insertions(+), 95 deletions(-)