Making wiretap option blocks more generic.
authorMichael Mann <mmann78@netscape.net>
Tue, 26 Jan 2016 01:17:21 +0000 (20:17 -0500)
committerMichael Mann <mmann78@netscape.net>
Tue, 23 Feb 2016 00:39:38 +0000 (00:39 +0000)
commit08d49ff2e06cb35dc9084735aa60c83686afdd9c
tree93d55773a42d4a1cf64b6544c6e2f3ec03ef4f4e
parent37acf433dbb2ef1d443c9ee09a315b0b4ce136d8
Making wiretap option blocks more generic.

This was inspired by https://code.wireshark.org/review/9729/, but takes it in a different direction where all options are put into an array, regardless of whether they are "standard" or "custom".  It should be easier to add "custom" options in this design. Some, but not all blocks have been converted.
Descriptions of some of the block options have been moved from wtap.h to pcapng.h as it seems to be the one that implements the description of the blocks.

Also what could be added/refactored is registering block behavior.

Change-Id: I3dffa38f0bb088f98749a4f97a3b7655baa4aa6a
Reviewed-on: https://code.wireshark.org/review/13667
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
26 files changed:
capinfos.c
cfile.c
debian/libwiretap0.symbols
editcap.c
epan/wslua/wslua.h
epan/wslua/wslua_capture_info.c
file.c
reordercap.c
summary.c
tshark.c
ui/gtk/file_import_dlg.c
ui/tap_export_pdu.c
wiretap/CMakeLists.txt
wiretap/Makefile.common
wiretap/erf.c
wiretap/file_access.c
wiretap/lanalyzer.c
wiretap/merge.c
wiretap/nettrace_3gpp_32_423.c
wiretap/pcapng.c
wiretap/pcapng.h
wiretap/wtap-int.h
wiretap/wtap.c
wiretap/wtap.h
wiretap/wtap_opttypes.c [new file with mode: 0644]
wiretap/wtap_opttypes.h [new file with mode: 0644]