diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-11-16 02:15:47 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-11-16 12:21:00 +0000 |
commit | b894c53d5ea1395e042bb05e471d651af486dfab (patch) | |
tree | 9bd6a6c5168fe4c4594508c912765a342ab9afe0 /extcap/CMakeLists.txt | |
parent | eea4997f7e52e0126448225dfd04da840f73ec0c (diff) |
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@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'extcap/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions