From 8aa14236f8b0ea69901ea9ed87ebabd0d278e973 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 8 Dec 2017 00:30:55 -0800 Subject: 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 --- ui/gtk/capture_file_dlg.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/gtk/capture_file_dlg.h') diff --git a/ui/gtk/capture_file_dlg.h b/ui/gtk/capture_file_dlg.h index 02d544abc4..deda5f8943 100644 --- a/ui/gtk/capture_file_dlg.h +++ b/ui/gtk/capture_file_dlg.h @@ -23,6 +23,8 @@ #ifndef __CAPTURE_FILE_DLG_H__ #define __CAPTURE_FILE_DLG_H__ +#include "cfile.h" + /** @file * "Open" / "Close" / "Save" / "Save As" / etc dialog boxes. * @ingroup dialog_group -- cgit v1.2.3