Move the parts of a capture_file used by libwireshark to a new structure.
authorGuy Harris <guy@alum.mit.edu>
Mon, 4 Dec 2017 05:01:18 +0000 (21:01 -0800)
committerGuy Harris <guy@alum.mit.edu>
Mon, 4 Dec 2017 05:02:18 +0000 (05:02 +0000)
commit1834dca3654ccec238bae130715871be3d8fa344
tree5f1de666575b16f58be5a2f7b4e40cc5b93c02dc
parent02944c412b4d9d7661c0a2b3eb9df44d632878ee
Move the parts of a capture_file used by libwireshark to a new structure.

Embed one of those structures in a capture_file, and have a struct
epan_session point to that structure rather than to a capture_file.
Pass that structure to the routines that fetch data that libwireshark
uses when dissecting.

That separates the stuff that libwireshark expects from the stuff that
it doesn't look at.

Change-Id: Ia3cd28efb9622476437a2ce32204597fae720877
Reviewed-on: https://code.wireshark.org/review/24692
Reviewed-by: Guy Harris <guy@alum.mit.edu>
29 files changed:
cfile-int.h
cfile.c
cfile.h
epan/CMakeLists.txt
epan/Makefile.am
epan/epan-int.h
epan/epan.c
epan/frame_set.c [new file with mode: 0644]
epan/frame_set.h [new file with mode: 0644]
file.c
frame_tvbuff.c
rawshark.c
sharkd.c
sharkd_session.c
summary.c
tfshark.c
tshark.c
ui/gtk/packet_list.c
ui/gtk/packet_win.c
ui/gtk/summary_dlg.c
ui/packet_range.c
ui/proto_hier_stats.c
ui/qt/capture_file.cpp
ui/qt/capture_file_properties_dialog.cpp
ui/qt/main_window_slots.cpp
ui/qt/packet_list.cpp
ui/qt/resolved_addresses_dialog.cpp
ui/qt/wireless_timeline.cpp
ui/time_shift.c