diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-12-08 00:30:55 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-12-08 08:31:41 +0000 |
commit | 8aa14236f8b0ea69901ea9ed87ebabd0d278e973 (patch) | |
tree | b49b5d6b0ee5d647cf33054c5f280d2dc4fa4f99 /ui/qt/address_editor_frame.cpp | |
parent | f29b3deb6d867b16fb8bc4bd5f66a5b6326a6727 (diff) |
Have the frame_tvbuff.c routines not use the global cfile.
Have the routines that create them take a pointer to a struct
packet_provider_data, store that in the tvbuff data, and use it to get
the wtap from which packets are being read.
While we're at it, don't include globals.h in any header files, and
include it in source files iff the source file actually uses cfile. Add
whatever includes that requires.
Change-Id: I9f1ee391f951dc427ff62c80f67aa4877a37c229
Reviewed-on: https://code.wireshark.org/review/24733
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt/address_editor_frame.cpp')
-rw-r--r-- | ui/qt/address_editor_frame.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/address_editor_frame.cpp b/ui/qt/address_editor_frame.cpp index a56464b76e..45f4ad0ec2 100644 --- a/ui/qt/address_editor_frame.cpp +++ b/ui/qt/address_editor_frame.cpp @@ -83,7 +83,8 @@ void AddressEditorFrame::editAddresses(CaptureFile &cf, int column) col_custom_prime_edt(&edt, &cap_file_->cinfo); epan_dissect_run(&edt, cap_file_->cd_t, &cap_file_->phdr, - frame_tvbuff_new_buffer(cap_file_->current_frame, &cap_file_->buf), cap_file_->current_frame, &cap_file_->cinfo); + frame_tvbuff_new_buffer(&cap_file_->provider, cap_file_->current_frame, &cap_file_->buf), + cap_file_->current_frame, &cap_file_->cinfo); epan_dissect_fill_in_columns(&edt, TRUE, TRUE); /* First check selected column */ |