aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--capchild/capture_session.h6
-rw-r--r--capchild/capture_sync.c2
-rw-r--r--cfile.c5
-rw-r--r--cfile.h79
-rw-r--r--epan/epan-int.h20
-rw-r--r--epan/frame_data.h3
-rw-r--r--epan/tap.h1
-rw-r--r--file.c5
-rw-r--r--file.h5
-rw-r--r--globals.h1
-rw-r--r--rawshark.c2
-rw-r--r--sharkd.c2
-rw-r--r--summary.c1
-rw-r--r--tfshark.c4
-rw-r--r--tools/oss-fuzzshark/fuzzshark.c2
-rw-r--r--tshark.c2
-rw-r--r--ui/capture.c2
-rw-r--r--ui/export_pdu_ui_utils.c1
-rw-r--r--ui/gtk/main_titlebar.c1
-rw-r--r--ui/packet_list_utils.c2
-rw-r--r--ui/packet_range.c2
-rw-r--r--ui/packet_range.h1
-rw-r--r--ui/proto_hier_stats.c5
-rw-r--r--ui/proto_hier_stats.h4
-rw-r--r--ui/qt/address_editor_frame.cpp2
-rw-r--r--ui/qt/byte_view_tab.cpp1
-rw-r--r--ui/qt/capture_file.h3
-rw-r--r--ui/qt/capture_file_dialog.cpp1
-rw-r--r--ui/qt/capture_file_properties_dialog.cpp2
-rw-r--r--ui/qt/conversation_dialog.cpp2
-rw-r--r--ui/qt/endpoint_dialog.cpp2
-rw-r--r--ui/qt/expert_info_dialog.cpp1
-rw-r--r--ui/qt/file_set_dialog.cpp1
-rw-r--r--ui/qt/follow_stream_dialog.cpp2
-rw-r--r--ui/qt/iax2_analysis_dialog.cpp1
-rw-r--r--ui/qt/io_graph_dialog.cpp1
-rw-r--r--ui/qt/lbm_lbtrm_transport_dialog.h1
-rw-r--r--ui/qt/lbm_lbtru_transport_dialog.h1
-rw-r--r--ui/qt/lbm_stream_dialog.h1
-rw-r--r--ui/qt/main_status_bar.cpp3
-rw-r--r--ui/qt/main_window.cpp2
-rw-r--r--ui/qt/main_window_slots.cpp2
-rw-r--r--ui/qt/models/decode_as_delegate.cpp2
-rw-r--r--ui/qt/models/decode_as_model.cpp2
-rw-r--r--ui/qt/models/packet_list_model.cpp1
-rw-r--r--ui/qt/models/packet_list_record.cpp1
-rw-r--r--ui/qt/packet_dialog.cpp2
-rw-r--r--ui/qt/packet_list.cpp1
-rw-r--r--ui/qt/packet_range_group_box.cpp1
-rw-r--r--ui/qt/print_dialog.cpp2
-rw-r--r--ui/qt/proto_tree.cpp2
-rw-r--r--ui/qt/protocol_hierarchy_dialog.cpp1
-rw-r--r--ui/qt/resolved_addresses_dialog.cpp1
-rw-r--r--ui/qt/rtp_analysis_dialog.cpp1
-rw-r--r--ui/qt/rtp_analysis_dialog.h1
-rw-r--r--ui/qt/sctp_assoc_analyse_dialog.cpp2
-rw-r--r--ui/qt/sctp_graph_arwnd_dialog.h9
-rw-r--r--ui/qt/sctp_graph_byte_dialog.h9
-rw-r--r--ui/qt/sctp_graph_dialog.h9
-rw-r--r--ui/qt/search_frame.cpp1
-rw-r--r--ui/qt/sequence_dialog.cpp2
-rw-r--r--ui/qt/show_packet_bytes_dialog.cpp3
-rw-r--r--ui/qt/time_shift_dialog.cpp2
-rw-r--r--ui/qt/traffic_table_dialog.cpp2
-rw-r--r--ui/qt/utils/frame_information.cpp1
-rw-r--r--ui/qt/voip_calls_dialog.cpp1
-rw-r--r--ui/qt/voip_calls_dialog.h6
-rw-r--r--ui/tap-rlc-graph.c2
-rw-r--r--ui/tap-tcp-stream.c2
-rw-r--r--ui/time_shift.c3
-rw-r--r--ui/voip_calls.c1
-rw-r--r--wireshark-qt.cpp1
72 files changed, 141 insertions, 120 deletions
diff --git a/capchild/capture_session.h b/capchild/capture_session.h
index cb4b3793bd..4579c762e9 100644
--- a/capchild/capture_session.h
+++ b/capchild/capture_session.h
@@ -44,7 +44,7 @@ typedef enum {
CAPTURE_RUNNING /**< capture child signalled ok, capture is running now */
} capture_state;
-struct _capture_file;
+#include "cfile.h"
struct _info_data;
/*
* State of a capture session.
@@ -63,12 +63,12 @@ typedef struct _capture_session {
gboolean session_started;
guint32 count; /**< Total number of frames captured */
capture_options *capture_opts; /**< options for this capture */
- struct _capture_file *cf; /**< handle to cfile */
+ capture_file *cf; /**< handle to cfile */
struct _info_data *cap_data_info; /**< stats for this capture */
} capture_session;
extern void
-capture_session_init(capture_session *cap_session, struct _capture_file *cf);
+capture_session_init(capture_session *cap_session, capture_file *cf);
#else
/* dummy is needed because clang throws the error: empty struct has size 0 in C, size 1 in C++ */
diff --git a/capchild/capture_sync.c b/capchild/capture_sync.c
index 1cc09d74cf..723449f701 100644
--- a/capchild/capture_sync.c
+++ b/capchild/capture_sync.c
@@ -122,7 +122,7 @@ static void (*fetch_dumpcap_pid)(ws_process_id) = NULL;
void
-capture_session_init(capture_session *cap_session, struct _capture_file *cf)
+capture_session_init(capture_session *cap_session, capture_file *cf)
{
cap_session->cf = cf;
cap_session->fork_child = WS_INVALID_PID; /* invalid process handle */
diff --git a/cfile.c b/cfile.c
index 4115df4573..8fb635d562 100644
--- a/cfile.c
+++ b/cfile.c
@@ -17,9 +17,10 @@
#include <wiretap/pcapng.h>
#include "cfile.h"
+#include "cfile-int.h"
const char *
-cap_file_get_interface_name(struct _capture_file *cf, guint32 interface_id)
+cap_file_get_interface_name(capture_file *cf, guint32 interface_id)
{
wtapng_iface_descriptions_t *idb_info;
wtap_block_t wtapng_if_descr = NULL;
@@ -42,7 +43,7 @@ cap_file_get_interface_name(struct _capture_file *cf, guint32 interface_id)
}
const char *
-cap_file_get_interface_description(struct _capture_file *cf, guint32 interface_id)
+cap_file_get_interface_description(capture_file *cf, guint32 interface_id)
{
wtapng_iface_descriptions_t *idb_info;
wtap_block_t wtapng_if_descr = NULL;
diff --git a/cfile.h b/cfile.h
index 8f323648bb..7a3c39d17a 100644
--- a/cfile.h
+++ b/cfile.h
@@ -11,12 +11,7 @@
#ifndef __CFILE_H__
#define __CFILE_H__
-#include <epan/epan.h>
-#include <epan/column-info.h>
-#include <epan/dfilter/dfilter.h>
-#include <epan/frame_data.h>
-#include <epan/frame_data_sequence.h>
-#include <wiretap/wtap.h>
+#include <glib.h>
#ifdef __cplusplus
extern "C" {
@@ -43,77 +38,13 @@ typedef enum {
SD_BACKWARD
} search_direction;
-typedef struct _capture_file {
- epan_t *epan;
- file_state state; /* Current state of capture file */
- gchar *filename; /* Name of capture file */
- gchar *source; /* Temp file source, e.g. "Pipe from elsewhere" */
- gboolean is_tempfile; /* Is capture file a temporary file? */
- gboolean unsaved_changes; /* Does the capture file have changes that have not been saved? */
- gboolean stop_flag; /* Stop current processing (loading, searching, etc.) */
-
- gint64 f_datalen; /* Size of capture file data (uncompressed) */
- guint16 cd_t; /* File type of capture file */
- unsigned int open_type; /* open_routine index+1 used, if selected, or WTAP_TYPE_AUTO */
- gboolean iscompressed; /* TRUE if the file is compressed */
- int lnk_t; /* File link-layer type; could be WTAP_ENCAP_PER_PACKET */
- GArray *linktypes; /* Array of packet link-layer types */
- guint32 count; /* Total number of frames */
- guint64 packet_comment_count; /* Number of comments in frames (could be >1 per frame... */
- guint32 displayed_count; /* Number of displayed frames */
- guint32 marked_count; /* Number of marked frames */
- guint32 ignored_count; /* Number of ignored frames */
- guint32 ref_time_count; /* Number of time referenced frames */
- gboolean drops_known; /* TRUE if we know how many packets were dropped */
- guint32 drops; /* Dropped packets */
- nstime_t elapsed_time; /* Elapsed time */
- int snap; /* Maximum captured packet length; 0 if unknown */
- wtap *wth; /* Wiretap session */
- dfilter_t *rfcode; /* Compiled read filter program */
- dfilter_t *dfcode; /* Compiled display filter program */
- gchar *dfilter; /* Display filter string */
- gboolean redissecting; /* TRUE if currently redissecting (cf_redissect_packets) */
- /* search */
- gchar *sfilter; /* Filter, hex value, or string being searched */
- gboolean hex; /* TRUE if "Hex value" search was last selected */
- gboolean string; /* TRUE if "String" search was last selected */
- gboolean summary_data; /* TRUE if "String" search in "Packet list" (Info column) was last selected */
- gboolean decode_data; /* TRUE if "String" search in "Packet details" was last selected */
- gboolean packet_data; /* TRUE if "String" search in "Packet data" was last selected */
- guint32 search_pos; /* Byte position of last byte found in a hex search */
- guint32 search_len; /* Length of bytes matching the search */
- gboolean case_type; /* TRUE if case-insensitive text search */
- GRegex *regex; /* Set if regular expression search */
- search_charset_t scs_type; /* Character set for text search */
- search_direction dir; /* Direction in which to do searches */
- gboolean search_in_progress; /* TRUE if user just clicked OK in the Find dialog or hit <control>N/B */
- /* packet data */
- struct wtap_pkthdr phdr; /* Packet header */
- Buffer buf; /* Packet data */
- /* frames */
- frame_data_sequence *frames; /* Sequence of frames, if we're keeping that information */
- guint32 first_displayed; /* Frame number of first frame displayed */
- guint32 last_displayed; /* Frame number of last frame displayed */
- column_info cinfo; /* Column formatting information */
- gboolean columns_changed; /**< Have the columns been changed in the prefs? (GTK+ only) */
- frame_data *current_frame; /* Frame data for current frame */
- gint current_row; /* Row number for current frame */
- epan_dissect_t *edt; /* Protocol dissection for currently selected packet */
- field_info *finfo_selected; /* Field info for currently selected field */
- gpointer window; /* Top-level window associated with file */
- GTree *frames_user_comments; /* BST with user comments for frames (key = frame_data) */
- gulong computed_elapsed; /* Elapsed time to load the file (in msec). */
-
- guint32 cum_bytes;
- const frame_data *ref;
- frame_data *prev_dis;
- frame_data *prev_cap;
-} capture_file;
+struct _capture_file;
+typedef struct _capture_file capture_file;
extern void cap_file_init(capture_file *cf);
-extern const char *cap_file_get_interface_name(struct _capture_file *cf, guint32 interface_id);
-extern const char *cap_file_get_interface_description(struct _capture_file *cf, guint32 interface_id);
+extern const char *cap_file_get_interface_name(capture_file *cf, guint32 interface_id);
+extern const char *cap_file_get_interface_description(capture_file *cf, guint32 interface_id);
#ifdef __cplusplus
}
diff --git a/epan/epan-int.h b/epan/epan-int.h
index 05ae6407cb..97a621c35f 100644
--- a/epan/epan-int.h
+++ b/epan/epan-int.h
@@ -25,15 +25,23 @@
#include <epan/frame_data.h>
#include <wsutil/nstime.h>
-struct _capture_file;
+/*
+ * XXX - this isn't part of libwireshark; using it in the API indicates
+ * that perhaps it should be, in some fashion.
+ *
+ * Whether the structure definition of a capture_file should be part
+ * of libwireshark, or part of the code that uses libwireshark, is
+ * another matter.
+ */
+#include "cfile.h"
struct epan_session {
- struct _capture_file *cf;
+ capture_file *cf;
- const nstime_t *(*get_frame_ts)(struct _capture_file *cf, guint32 frame_num);
- const char *(*get_interface_name)(struct _capture_file *cf, guint32 interface_id);
- const char *(*get_interface_description)(struct _capture_file *cf, guint32 interface_id);
- const char *(*get_user_comment)(struct _capture_file *cf, const frame_data *fd);
+ const nstime_t *(*get_frame_ts)(capture_file *cf, guint32 frame_num);
+ const char *(*get_interface_name)(capture_file *cf, guint32 interface_id);
+ const char *(*get_interface_description)(capture_file *cf, guint32 interface_id);
+ const char *(*get_user_comment)(capture_file *cf, const frame_data *fd);
};
#endif
diff --git a/epan/frame_data.h b/epan/frame_data.h
index 7dd6cce1a6..44de9de4cb 100644
--- a/epan/frame_data.h
+++ b/epan/frame_data.h
@@ -31,9 +31,10 @@ extern "C" {
#include <ws_symbol_export.h>
#include <wsutil/nstime.h>
+#include <wiretap/wtap.h>
+
struct _packet_info;
struct epan_session;
-struct wtap_pkthdr;
#define PINFO_FD_VISITED(pinfo) ((pinfo)->fd->flags.visited)
diff --git a/epan/tap.h b/epan/tap.h
index edaaa31474..395bf19ce8 100644
--- a/epan/tap.h
+++ b/epan/tap.h
@@ -24,6 +24,7 @@
#define __TAP_H__
#include <epan/epan.h>
+#include <epan/packet_info.h>
#include "ws_symbol_export.h"
#ifdef __cplusplus
diff --git a/file.c b/file.c
index edef35f77e..bca907edc2 100644
--- a/file.c
+++ b/file.c
@@ -44,6 +44,7 @@
#include <epan/color_filters.h>
#include "cfile.h"
+#include "cfile-int.h"
#include "file.h"
#include "fileset.h"
#include "frame_tvbuff.h"
@@ -225,7 +226,7 @@ static void compute_elapsed(capture_file *cf, GTimeVal *start_time)
}
static const nstime_t *
-ws_get_frame_ts(struct _capture_file *cf, guint32 frame_num)
+ws_get_frame_ts(capture_file *cf, guint32 frame_num)
{
if (cf->prev_dis && cf->prev_dis->num == frame_num)
return &cf->prev_dis->abs_ts;
@@ -243,7 +244,7 @@ ws_get_frame_ts(struct _capture_file *cf, guint32 frame_num)
}
static const char *
-ws_get_user_comment(struct _capture_file *cf, const frame_data *fd)
+ws_get_user_comment(capture_file *cf, const frame_data *fd)
{
return cf_get_user_packet_comment(cf, fd);
}
diff --git a/file.h b/file.h
index a66ef8b7be..a29c9953c1 100644
--- a/file.h
+++ b/file.h
@@ -11,10 +11,11 @@
#ifndef __FILE_H__
#define __FILE_H__
-#include "wiretap/wtap.h"
#include <errno.h>
-#include <epan/epan.h>
+#include <wiretap/wtap.h>
+#include <epan/epan.h>
+#include <epan/dfilter/dfilter.h>
#include <epan/print.h>
#include <ui/packet_range.h>
diff --git a/globals.h b/globals.h
index 246c829c1a..4d32614538 100644
--- a/globals.h
+++ b/globals.h
@@ -12,6 +12,7 @@
#define __GLOBALS_H__
#include "file.h"
+#include "cfile-int.h"
#include <epan/timestamp.h>
#ifdef __cplusplus
diff --git a/rawshark.c b/rawshark.c
index c385713217..b84f191eb7 100644
--- a/rawshark.c
+++ b/rawshark.c
@@ -1466,7 +1466,7 @@ open_failure_message(const char *filename, int err, gboolean for_writing)
}
static const nstime_t *
-raw_get_frame_ts(struct _capture_file *cf _U_, guint32 frame_num)
+raw_get_frame_ts(capture_file *cf _U_, guint32 frame_num)
{
if (ref && ref->num == frame_num)
return &ref->abs_ts;
diff --git a/sharkd.c b/sharkd.c
index e7cfc3bd58..31b2c185cc 100644
--- a/sharkd.c
+++ b/sharkd.c
@@ -224,7 +224,7 @@ clean_exit:
}
static const nstime_t *
-sharkd_get_frame_ts(struct _capture_file *cf, guint32 frame_num)
+sharkd_get_frame_ts(capture_file *cf, guint32 frame_num)
{
if (ref && ref->num == frame_num)
return &ref->abs_ts;
diff --git a/summary.c b/summary.c
index 6a30b5bcd0..ec15d28def 100644
--- a/summary.c
+++ b/summary.c
@@ -16,6 +16,7 @@
#include <epan/packet.h>
#include "cfile.h"
+#include "cfile-int.h"
#include "summary.h"
static void
diff --git a/tfshark.c b/tfshark.c
index e7dedaf58e..ebbdfa2d8f 100644
--- a/tfshark.c
+++ b/tfshark.c
@@ -1026,7 +1026,7 @@ clean_exit:
}
static const nstime_t *
-tfshark_get_frame_ts(struct _capture_file *cf, guint32 frame_num)
+tfshark_get_frame_ts(capture_file *cf, guint32 frame_num)
{
if (ref && ref->num == frame_num)
return &ref->abs_ts;
@@ -1047,7 +1047,7 @@ tfshark_get_frame_ts(struct _capture_file *cf, guint32 frame_num)
}
static const char *
-no_interface_name(struct _capture_file *cf _U_, guint32 interface_id _U_)
+no_interface_name(capture_file *cf _U_, guint32 interface_id _U_)
{
return "";
}
diff --git a/tools/oss-fuzzshark/fuzzshark.c b/tools/oss-fuzzshark/fuzzshark.c
index d05838da20..103ee37b97 100644
--- a/tools/oss-fuzzshark/fuzzshark.c
+++ b/tools/oss-fuzzshark/fuzzshark.c
@@ -111,7 +111,7 @@ failure_message_cont(const char *msg_format, va_list ap)
}
static const nstime_t *
-fuzzshark_get_frame_ts(struct _capture_file *cf _U_, guint32 frame_num _U_)
+fuzzshark_get_frame_ts(capture_file *cf _U_, guint32 frame_num _U_)
{
static nstime_t empty;
diff --git a/tshark.c b/tshark.c
index 1c0ec4c4db..75efce6514 100644
--- a/tshark.c
+++ b/tshark.c
@@ -2346,7 +2346,7 @@ pipe_input_set_handler(gint source, gpointer user_data, ws_process_id *child_pro
}
static const nstime_t *
-tshark_get_frame_ts(struct _capture_file *cf, guint32 frame_num)
+tshark_get_frame_ts(capture_file *cf, guint32 frame_num)
{
if (ref && ref->num == frame_num)
return &ref->abs_ts;
diff --git a/ui/capture.c b/ui/capture.c
index 1e1c8374fa..36e27811f9 100644
--- a/ui/capture.c
+++ b/ui/capture.c
@@ -21,6 +21,8 @@
#include <epan/packet.h>
#include <epan/dfilter/dfilter.h>
#include "file.h"
+#include "cfile.h"
+#include "cfile-int.h"
#include "ui/capture.h"
#include "caputils/capture_ifinfo.h"
#include <capchild/capture_sync.h>
diff --git a/ui/export_pdu_ui_utils.c b/ui/export_pdu_ui_utils.c
index 8a56fee2e7..b43a88323f 100644
--- a/ui/export_pdu_ui_utils.c
+++ b/ui/export_pdu_ui_utils.c
@@ -40,6 +40,7 @@
#include "ui/alert_box.h"
#include "ui/simple_dialog.h"
#include "tap_export_pdu.h"
+#include "cfile-int.h"
#include "export_pdu_ui_utils.h"
static void
diff --git a/ui/gtk/main_titlebar.c b/ui/gtk/main_titlebar.c
index 9b8ee56538..b04c9989fe 100644
--- a/ui/gtk/main_titlebar.c
+++ b/ui/gtk/main_titlebar.c
@@ -27,6 +27,7 @@
#include <gtk/gtk.h>
#include "file.h"
+#include "cfile-int.h"
#include "gtkglobals.h"
#include "gui_utils.h"
diff --git a/ui/packet_list_utils.c b/ui/packet_list_utils.c
index 931e5c7960..3fba27c0a9 100644
--- a/ui/packet_list_utils.c
+++ b/ui/packet_list_utils.c
@@ -24,10 +24,10 @@
#include "config.h"
-
#include "packet_list_utils.h"
#include <epan/column.h>
+#include "cfile-int.h"
gboolean
right_justify_column (gint col, capture_file *cf)
diff --git a/ui/packet_range.c b/ui/packet_range.c
index a6797e3110..c6b9335e5f 100644
--- a/ui/packet_range.c
+++ b/ui/packet_range.c
@@ -33,6 +33,8 @@
#include "packet_range.h"
+#include "cfile-int.h"
+
/* (re-)calculate the packet counts (except the user specified range) */
static void packet_range_calc(packet_range_t *range) {
guint32 framenum;
diff --git a/ui/packet_range.h b/ui/packet_range.h
index 49e8cdbbd3..b4b929b57b 100644
--- a/ui/packet_range.h
+++ b/ui/packet_range.h
@@ -33,6 +33,7 @@ extern "C" {
#include <glib.h>
#include <epan/range.h>
+#include <epan/frame_data.h>
#include "cfile.h"
diff --git a/ui/proto_hier_stats.c b/ui/proto_hier_stats.c
index ec9f9653c4..73ad201a24 100644
--- a/ui/proto_hier_stats.c
+++ b/ui/proto_hier_stats.c
@@ -10,14 +10,15 @@
#include "config.h"
+#include <string.h>
+
#include "file.h"
#include "frame_tvbuff.h"
#include "ui/proto_hier_stats.h"
#include "ui/progress_dlg.h"
#include "epan/epan_dissect.h"
#include "epan/proto.h"
-
-#include <string.h>
+#include "cfile-int.h"
/* Update the progress bar this many times when scanning the packet list. */
#define N_PROGBAR_UPDATES 100
diff --git a/ui/proto_hier_stats.h b/ui/proto_hier_stats.h
index 6594e8c9af..0b8cea60df 100644
--- a/ui/proto_hier_stats.h
+++ b/ui/proto_hier_stats.h
@@ -19,6 +19,7 @@ extern "C" {
*/
#include <epan/proto.h>
+#include "cfile.h"
typedef struct {
header_field_info *hfinfo;
@@ -37,8 +38,7 @@ typedef struct {
double last_time; /* seconds (msec resolution) of last packet */
} ph_stats_t;
-struct _capture_file;
-ph_stats_t *ph_stats_new(struct _capture_file *cf);
+ph_stats_t *ph_stats_new(capture_file *cf);
void ph_stats_free(ph_stats_t *ps);
diff --git a/ui/qt/address_editor_frame.cpp b/ui/qt/address_editor_frame.cpp
index a56464b76e..c3a16fe6fe 100644
--- a/ui/qt/address_editor_frame.cpp
+++ b/ui/qt/address_editor_frame.cpp
@@ -30,6 +30,8 @@
#include "epan/epan_dissect.h"
#include "epan/frame_data.h"
+#include "cfile-int.h"
+
#include "address_editor_frame.h"
#include <ui_address_editor_frame.h>
diff --git a/ui/qt/byte_view_tab.cpp b/ui/qt/byte_view_tab.cpp
index a038f637df..742cac1392 100644
--- a/ui/qt/byte_view_tab.cpp
+++ b/ui/qt/byte_view_tab.cpp
@@ -28,6 +28,7 @@
#include <QTreeWidgetItem>
#include "cfile.h"
+#include "cfile-int.h"
#include "epan/epan_dissect.h"
#include "epan/tvbuff-int.h"
diff --git a/ui/qt/capture_file.h b/ui/qt/capture_file.h
index 14215acaf1..d8cdf75a90 100644
--- a/ui/qt/capture_file.h
+++ b/ui/qt/capture_file.h
@@ -28,7 +28,8 @@
#include <glib.h>
-typedef struct _capture_file capture_file;
+#include "cfile.h"
+
typedef struct _capture_session capture_session;
struct _packet_info;
diff --git a/ui/qt/capture_file_dialog.cpp b/ui/qt/capture_file_dialog.cpp
index 22ff4eae73..6935c2b552 100644
--- a/ui/qt/capture_file_dialog.cpp
+++ b/ui/qt/capture_file_dialog.cpp
@@ -32,6 +32,7 @@
#include <errno.h>
#include "file.h"
+#include "cfile-int.h"
#include "wsutil/filesystem.h"
#include "wsutil/nstime.h"
#include "wsutil/str_util.h"
diff --git a/ui/qt/capture_file_properties_dialog.cpp b/ui/qt/capture_file_properties_dialog.cpp
index e205f938b4..da9a49fc8e 100644
--- a/ui/qt/capture_file_properties_dialog.cpp
+++ b/ui/qt/capture_file_properties_dialog.cpp
@@ -33,6 +33,8 @@
#include <ui/qt/utils/qt_ui_utils.h>
#include "wireshark_application.h"
+#include "cfile-int.h"
+
#include <QPushButton>
#include <QScrollBar>
#include <QTextStream>
diff --git a/ui/qt/conversation_dialog.cpp b/ui/qt/conversation_dialog.cpp
index a66ceb5974..eddd172119 100644
--- a/ui/qt/conversation_dialog.cpp
+++ b/ui/qt/conversation_dialog.cpp
@@ -24,6 +24,8 @@
#include <epan/prefs.h>
#include <epan/dissectors/packet-tcp.h>
+#include "cfile-int.h"
+
#include "ui/recent.h"
#include "ui/tap-tcp-stream.h"
#include "ui/traffic_table_ui.h"
diff --git a/ui/qt/endpoint_dialog.cpp b/ui/qt/endpoint_dialog.cpp
index 001f3d67a2..d01299db6b 100644
--- a/ui/qt/endpoint_dialog.cpp
+++ b/ui/qt/endpoint_dialog.cpp
@@ -29,6 +29,8 @@
#include <epan/prefs.h>
+#include "cfile-int.h"
+
#include "ui/recent.h"
#include "ui/traffic_table_ui.h"
diff --git a/ui/qt/expert_info_dialog.cpp b/ui/qt/expert_info_dialog.cpp
index b099e561de..83184c9819 100644
--- a/ui/qt/expert_info_dialog.cpp
+++ b/ui/qt/expert_info_dialog.cpp
@@ -23,6 +23,7 @@
#include <ui_expert_info_dialog.h>
#include "file.h"
+#include "cfile-int.h"
#include <epan/epan_dissect.h>
#include <epan/expert.h>
diff --git a/ui/qt/file_set_dialog.cpp b/ui/qt/file_set_dialog.cpp
index 808163a1b0..f1a81e83d5 100644
--- a/ui/qt/file_set_dialog.cpp
+++ b/ui/qt/file_set_dialog.cpp
@@ -25,6 +25,7 @@
#include "file.h"
#include "fileset.h"
+#include "cfile-int.h"
#include "ui/help_url.h"
diff --git a/ui/qt/follow_stream_dialog.cpp b/ui/qt/follow_stream_dialog.cpp
index 6e0bf460b4..51997cc2db 100644
--- a/ui/qt/follow_stream_dialog.cpp
+++ b/ui/qt/follow_stream_dialog.cpp
@@ -34,6 +34,8 @@
#include "epan/epan_dissect.h"
#include "epan/tap.h"
+#include "cfile-int.h"
+
#include "ui/alert_box.h"
#include "ui/simple_dialog.h"
#include <wsutil/utf8_entities.h>
diff --git a/ui/qt/iax2_analysis_dialog.cpp b/ui/qt/iax2_analysis_dialog.cpp
index 92707f8cd3..f7e167600f 100644
--- a/ui/qt/iax2_analysis_dialog.cpp
+++ b/ui/qt/iax2_analysis_dialog.cpp
@@ -23,6 +23,7 @@
#include <ui_iax2_analysis_dialog.h>
#include "file.h"
+#include "cfile-int.h"
#include "frame_tvbuff.h"
#include <epan/epan_dissect.h>
diff --git a/ui/qt/io_graph_dialog.cpp b/ui/qt/io_graph_dialog.cpp
index 0a69f9c541..f666a99f3f 100644
--- a/ui/qt/io_graph_dialog.cpp
+++ b/ui/qt/io_graph_dialog.cpp
@@ -23,6 +23,7 @@
#include <ui_io_graph_dialog.h>
#include "file.h"
+#include "cfile-int.h"
#include <epan/stat_tap_ui.h>
#include "epan/stats_tree_priv.h"
diff --git a/ui/qt/lbm_lbtrm_transport_dialog.h b/ui/qt/lbm_lbtrm_transport_dialog.h
index bb0f75962e..1562724bc5 100644
--- a/ui/qt/lbm_lbtrm_transport_dialog.h
+++ b/ui/qt/lbm_lbtrm_transport_dialog.h
@@ -29,6 +29,7 @@
#include <glib.h>
#include "cfile.h"
+#include <epan/epan.h>
#include <epan/packet_info.h>
#include <QDialog>
diff --git a/ui/qt/lbm_lbtru_transport_dialog.h b/ui/qt/lbm_lbtru_transport_dialog.h
index 25d3ac64b6..ea823e9eea 100644
--- a/ui/qt/lbm_lbtru_transport_dialog.h
+++ b/ui/qt/lbm_lbtru_transport_dialog.h
@@ -29,6 +29,7 @@
#include <glib.h>
#include "cfile.h"
+#include <epan/epan.h>
#include <epan/packet_info.h>
#include <QDialog>
diff --git a/ui/qt/lbm_stream_dialog.h b/ui/qt/lbm_stream_dialog.h
index 8310b0a28d..0cee88d6d9 100644
--- a/ui/qt/lbm_stream_dialog.h
+++ b/ui/qt/lbm_stream_dialog.h
@@ -29,6 +29,7 @@
#include <glib.h>
#include "cfile.h"
+#include <epan/epan.h>
#include <epan/packet_info.h>
#include <QDialog>
diff --git a/ui/qt/main_status_bar.cpp b/ui/qt/main_status_bar.cpp
index b524ab856d..091f509a3a 100644
--- a/ui/qt/main_status_bar.cpp
+++ b/ui/qt/main_status_bar.cpp
@@ -35,13 +35,14 @@
#include "ui/profile.h"
#include <ui/qt/utils/qt_ui_utils.h>
-
#include "capture_file.h"
#include "main_status_bar.h"
#include "profile_dialog.h"
#include <ui/qt/utils/stock_icon.h>
#include <ui/qt/utils/tango_colors.h>
+#include "cfile-int.h"
+
#include <QAction>
#include <QHBoxLayout>
#include <QSplitter>
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp
index 2dee41a3e5..c75a388995 100644
--- a/ui/qt/main_window.cpp
+++ b/ui/qt/main_window.cpp
@@ -39,6 +39,8 @@ DIAG_ON(frame-larger-than=)
#include <epan/plugin_if.h>
#include <epan/export_object.h>
+#include "cfile-int.h"
+
#include "ui/iface_toolbar.h"
#ifdef HAVE_LIBPCAP
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp
index 009b20fe90..077362beb4 100644
--- a/ui/qt/main_window_slots.cpp
+++ b/ui/qt/main_window_slots.cpp
@@ -71,6 +71,8 @@ DIAG_ON(frame-larger-than=)
#include <epan/wslua/init_wslua.h>
#endif
+#include "cfile-int.h"
+
#include "ui/alert_box.h"
#ifdef HAVE_LIBPCAP
#include "ui/capture_ui_utils.h"
diff --git a/ui/qt/models/decode_as_delegate.cpp b/ui/qt/models/decode_as_delegate.cpp
index bc632f5449..1dc806f272 100644
--- a/ui/qt/models/decode_as_delegate.cpp
+++ b/ui/qt/models/decode_as_delegate.cpp
@@ -25,6 +25,8 @@
#include "epan/decode_as.h"
#include "epan/epan_dissect.h"
+#include "cfile-int.h"
+
#include <ui/qt/utils/variant_pointer.h>
#include <QComboBox>
diff --git a/ui/qt/models/decode_as_model.cpp b/ui/qt/models/decode_as_model.cpp
index bc73784f04..653c513ed8 100644
--- a/ui/qt/models/decode_as_model.cpp
+++ b/ui/qt/models/decode_as_model.cpp
@@ -29,6 +29,8 @@
#include <epan/prefs-int.h>
#include <epan/dissectors/packet-dcerpc.h>
+#include "cfile-int.h"
+
#include <ui/qt/utils/qt_ui_utils.h>
static const char *DEFAULT_TABLE = "tcp.port"; // Arbitrary
diff --git a/ui/qt/models/packet_list_model.cpp b/ui/qt/models/packet_list_model.cpp
index d2d5b2f15a..91c7e81dca 100644
--- a/ui/qt/models/packet_list_model.cpp
+++ b/ui/qt/models/packet_list_model.cpp
@@ -24,6 +24,7 @@
#include "packet_list_model.h"
#include "file.h"
+#include "cfile-int.h"
#include <wsutil/nstime.h>
#include <epan/column.h>
diff --git a/ui/qt/models/packet_list_record.cpp b/ui/qt/models/packet_list_record.cpp
index 8e1551071b..a5b6203e31 100644
--- a/ui/qt/models/packet_list_record.cpp
+++ b/ui/qt/models/packet_list_record.cpp
@@ -22,6 +22,7 @@
#include "packet_list_record.h"
#include <file.h>
+#include <cfile-int.h>
#include <epan/epan_dissect.h>
#include <epan/column-info.h>
diff --git a/ui/qt/packet_dialog.cpp b/ui/qt/packet_dialog.cpp
index ea17a20cd4..9e3a1ff347 100644
--- a/ui/qt/packet_dialog.cpp
+++ b/ui/qt/packet_dialog.cpp
@@ -35,6 +35,8 @@
#include "proto_tree.h"
#include "wireshark_application.h"
+#include "cfile-int.h"
+
#include <ui/qt/utils/field_information.h>
#include <QTreeWidgetItemIterator>
diff --git a/ui/qt/packet_list.cpp b/ui/qt/packet_list.cpp
index b2c53a9e63..37f9b89029 100644
--- a/ui/qt/packet_list.cpp
+++ b/ui/qt/packet_list.cpp
@@ -26,6 +26,7 @@
#include <glib.h>
#include "file.h"
+#include "cfile-int.h"
#include <epan/epan.h>
#include <epan/epan_dissect.h>
diff --git a/ui/qt/packet_range_group_box.cpp b/ui/qt/packet_range_group_box.cpp
index de594ce975..673d196dcd 100644
--- a/ui/qt/packet_range_group_box.cpp
+++ b/ui/qt/packet_range_group_box.cpp
@@ -21,6 +21,7 @@
#include "packet_range_group_box.h"
#include <ui_packet_range_group_box.h>
+#include "cfile-int.h"
PacketRangeGroupBox::PacketRangeGroupBox(QWidget *parent) :
QGroupBox(parent),
diff --git a/ui/qt/print_dialog.cpp b/ui/qt/print_dialog.cpp
index 8c4fecae31..9b8ee8b65b 100644
--- a/ui/qt/print_dialog.cpp
+++ b/ui/qt/print_dialog.cpp
@@ -22,6 +22,8 @@
#include "print_dialog.h"
#include <ui_print_dialog.h>
+#include "cfile-int.h"
+
#include <wsutil/utf8_entities.h>
#include <QPrintDialog>
diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp
index 401d948cf8..9f505ce510 100644
--- a/ui/qt/proto_tree.cpp
+++ b/ui/qt/proto_tree.cpp
@@ -26,6 +26,8 @@
#include <epan/ftypes/ftypes.h>
#include <epan/prefs.h>
+#include "cfile-int.h"
+
#include <ui/qt/utils/color_utils.h>
#include <ui/qt/utils/variant_pointer.h>
#include <ui/qt/utils/wireshark_mime_data.h>
diff --git a/ui/qt/protocol_hierarchy_dialog.cpp b/ui/qt/protocol_hierarchy_dialog.cpp
index 0e235b1196..3edad82758 100644
--- a/ui/qt/protocol_hierarchy_dialog.cpp
+++ b/ui/qt/protocol_hierarchy_dialog.cpp
@@ -23,6 +23,7 @@
#include <ui_protocol_hierarchy_dialog.h>
#include "cfile.h"
+#include "cfile-int.h"
#include "ui/proto_hier_stats.h"
diff --git a/ui/qt/resolved_addresses_dialog.cpp b/ui/qt/resolved_addresses_dialog.cpp
index 898bdcc7de..3da7f40e08 100644
--- a/ui/qt/resolved_addresses_dialog.cpp
+++ b/ui/qt/resolved_addresses_dialog.cpp
@@ -27,6 +27,7 @@
#include <glib.h>
#include "file.h"
+#include "cfile-int.h"
#include "epan/addr_resolv.h"
#include <wiretap/wtap.h>
diff --git a/ui/qt/rtp_analysis_dialog.cpp b/ui/qt/rtp_analysis_dialog.cpp
index 145fad1f75..fc89111f1c 100644
--- a/ui/qt/rtp_analysis_dialog.cpp
+++ b/ui/qt/rtp_analysis_dialog.cpp
@@ -23,6 +23,7 @@
#include <ui_rtp_analysis_dialog.h>
#include "file.h"
+#include "cfile-int.h"
#include "frame_tvbuff.h"
#include "epan/epan_dissect.h"
diff --git a/ui/qt/rtp_analysis_dialog.h b/ui/qt/rtp_analysis_dialog.h
index 0251281294..0bf00e3109 100644
--- a/ui/qt/rtp_analysis_dialog.h
+++ b/ui/qt/rtp_analysis_dialog.h
@@ -27,6 +27,7 @@
#include <glib.h>
#include "epan/address.h"
+#include "epan/proto.h"
#include "ui/rtp_stream.h"
#include "ui/tap-rtp-analysis.h"
diff --git a/ui/qt/sctp_assoc_analyse_dialog.cpp b/ui/qt/sctp_assoc_analyse_dialog.cpp
index f1fe800cb8..8aed8155c2 100644
--- a/ui/qt/sctp_assoc_analyse_dialog.cpp
+++ b/ui/qt/sctp_assoc_analyse_dialog.cpp
@@ -30,6 +30,8 @@
#include "sctp_graph_byte_dialog.h"
#include "sctp_chunk_statistics_dialog.h"
+#include "cfile-int.h"
+
SCTPAssocAnalyseDialog::SCTPAssocAnalyseDialog(QWidget *parent, sctp_assoc_info_t *assoc, capture_file *cf, SCTPAllAssocsDialog* caller) :
QDialog(parent),
ui(new Ui::SCTPAssocAnalyseDialog),
diff --git a/ui/qt/sctp_graph_arwnd_dialog.h b/ui/qt/sctp_graph_arwnd_dialog.h
index b0349f3ea6..92f5bae1e9 100644
--- a/ui/qt/sctp_graph_arwnd_dialog.h
+++ b/ui/qt/sctp_graph_arwnd_dialog.h
@@ -25,6 +25,8 @@
#include <config.h>
#include <glib.h>
+#include "cfile.h"
+
#include <QDialog>
namespace Ui {
@@ -33,7 +35,6 @@ class SCTPGraphArwndDialog;
class QCPAbstractPlottable;
-struct _capture_file;
struct _sctp_assoc_info;
class SCTPGraphArwndDialog : public QDialog
@@ -41,11 +42,11 @@ class SCTPGraphArwndDialog : public QDialog
Q_OBJECT
public:
- explicit SCTPGraphArwndDialog(QWidget *parent = 0, struct _sctp_assoc_info *assoc = NULL, struct _capture_file *cf = NULL, int dir = 0);
+ explicit SCTPGraphArwndDialog(QWidget *parent = 0, struct _sctp_assoc_info *assoc = NULL, capture_file *cf = NULL, int dir = 0);
~SCTPGraphArwndDialog();
public slots:
- void setCaptureFile(struct _capture_file *cf) { cap_file_ = cf; }
+ void setCaptureFile(capture_file *cf) { cap_file_ = cf; }
private slots:
void on_pushButton_4_clicked();
@@ -57,7 +58,7 @@ private slots:
private:
Ui::SCTPGraphArwndDialog *ui;
struct _sctp_assoc_info *selected_assoc;
- struct _capture_file *cap_file_;
+ capture_file *cap_file_;
int frame_num;
int direction;
int startArwnd;
diff --git a/ui/qt/sctp_graph_byte_dialog.h b/ui/qt/sctp_graph_byte_dialog.h
index 79a6e9fff8..cee33936ed 100644
--- a/ui/qt/sctp_graph_byte_dialog.h
+++ b/ui/qt/sctp_graph_byte_dialog.h
@@ -25,6 +25,8 @@
#include <config.h>
#include <glib.h>
+#include "cfile.h"
+
#include <QDialog>
namespace Ui {
@@ -33,7 +35,6 @@ class SCTPGraphByteDialog;
class QCPAbstractPlottable;
-struct _capture_file;
struct _sctp_assoc_info;
class SCTPGraphByteDialog : public QDialog
@@ -41,11 +42,11 @@ class SCTPGraphByteDialog : public QDialog
Q_OBJECT
public:
- explicit SCTPGraphByteDialog(QWidget *parent = 0, struct _sctp_assoc_info *assoc = NULL, struct _capture_file *cf = NULL, int dir = 0);
+ explicit SCTPGraphByteDialog(QWidget *parent = 0, struct _sctp_assoc_info *assoc = NULL, capture_file *cf = NULL, int dir = 0);
~SCTPGraphByteDialog();
public slots:
- void setCaptureFile(struct _capture_file *cf) { cap_file_ = cf; }
+ void setCaptureFile(capture_file *cf) { cap_file_ = cf; }
private slots:
void on_pushButton_4_clicked();
@@ -57,7 +58,7 @@ private slots:
private:
Ui::SCTPGraphByteDialog *ui;
struct _sctp_assoc_info *selected_assoc;
- struct _capture_file *cap_file_;
+ capture_file *cap_file_;
int frame_num;
int direction;
QVector<double> xb, yb;
diff --git a/ui/qt/sctp_graph_dialog.h b/ui/qt/sctp_graph_dialog.h
index 4ee0eccb84..e213353cd5 100644
--- a/ui/qt/sctp_graph_dialog.h
+++ b/ui/qt/sctp_graph_dialog.h
@@ -25,6 +25,8 @@
#include <config.h>
#include <glib.h>
+#include "cfile.h"
+
#include <QDialog>
namespace Ui {
@@ -34,7 +36,6 @@ class SCTPGraphDialog;
class QCPAbstractPlottable;
class QCustomPlot;
-struct _capture_file;
struct _sctp_assoc_info;
struct chunk_header {
@@ -88,12 +89,12 @@ class SCTPGraphDialog : public QDialog
Q_OBJECT
public:
- explicit SCTPGraphDialog(QWidget *parent = 0, struct _sctp_assoc_info *assoc = NULL, struct _capture_file *cf = NULL, int dir = 0);
+ explicit SCTPGraphDialog(QWidget *parent = 0, struct _sctp_assoc_info *assoc = NULL, capture_file *cf = NULL, int dir = 0);
~SCTPGraphDialog();
static void save_graph(QDialog *dlg, QCustomPlot *plot);
public slots:
- void setCaptureFile(struct _capture_file *cf) { cap_file_ = cf; }
+ void setCaptureFile(capture_file *cf) { cap_file_ = cf; }
private slots:
void on_pushButton_clicked();
@@ -111,7 +112,7 @@ private slots:
private:
Ui::SCTPGraphDialog *ui;
struct _sctp_assoc_info *selected_assoc;
- struct _capture_file *cap_file_;
+ capture_file *cap_file_;
int frame_num;
int direction;
QVector<double> xt, yt, xs, ys, xg, yg, xd, yd, xn, yn;
diff --git a/ui/qt/search_frame.cpp b/ui/qt/search_frame.cpp
index f63f63ff1a..c380f16239 100644
--- a/ui/qt/search_frame.cpp
+++ b/ui/qt/search_frame.cpp
@@ -23,6 +23,7 @@
#include <ui_search_frame.h>
#include "file.h"
+#include "cfile-int.h"
#include <epan/proto.h>
#include <epan/strutil.h>
diff --git a/ui/qt/sequence_dialog.cpp b/ui/qt/sequence_dialog.cpp
index 57d55cb220..463ce3f2f3 100644
--- a/ui/qt/sequence_dialog.cpp
+++ b/ui/qt/sequence_dialog.cpp
@@ -25,6 +25,8 @@
#include "epan/addr_resolv.h"
#include "file.h"
+#include "cfile-int.h"
+
#include "wsutil/nstime.h"
#include "wsutil/utf8_entities.h"
#include "wsutil/file_util.h"
diff --git a/ui/qt/show_packet_bytes_dialog.cpp b/ui/qt/show_packet_bytes_dialog.cpp
index 2a83354943..e87e4d17bf 100644
--- a/ui/qt/show_packet_bytes_dialog.cpp
+++ b/ui/qt/show_packet_bytes_dialog.cpp
@@ -26,6 +26,9 @@
#include "wireshark_application.h"
#include "epan/charsets.h"
+
+#include "cfile-int.h"
+
#include "wsutil/base64.h"
#include "wsutil/utf8_entities.h"
diff --git a/ui/qt/time_shift_dialog.cpp b/ui/qt/time_shift_dialog.cpp
index ccd664a6f7..5d9eb6db92 100644
--- a/ui/qt/time_shift_dialog.cpp
+++ b/ui/qt/time_shift_dialog.cpp
@@ -24,6 +24,8 @@
#include "wireshark_application.h"
+#include "cfile-int.h"
+
#include <ui/time_shift.h>
#include <ui/qt/utils/tango_colors.h>
diff --git a/ui/qt/traffic_table_dialog.cpp b/ui/qt/traffic_table_dialog.cpp
index 3b836250b1..e5d957c499 100644
--- a/ui/qt/traffic_table_dialog.cpp
+++ b/ui/qt/traffic_table_dialog.cpp
@@ -26,6 +26,8 @@
#include <epan/addr_resolv.h>
#include <epan/prefs.h>
+#include "cfile-int.h"
+
#include "ui/recent.h"
#include "progress_frame.h"
diff --git a/ui/qt/utils/frame_information.cpp b/ui/qt/utils/frame_information.cpp
index c81b6736c2..c52212dec9 100644
--- a/ui/qt/utils/frame_information.cpp
+++ b/ui/qt/utils/frame_information.cpp
@@ -27,6 +27,7 @@
#include "wiretap/wtap.h"
#include "cfile.h"
+#include "cfile-int.h"
#include "file.h"
#include <ui/qt/capture_file.h>
diff --git a/ui/qt/voip_calls_dialog.cpp b/ui/qt/voip_calls_dialog.cpp
index 9cf547f2cb..d3c061c43c 100644
--- a/ui/qt/voip_calls_dialog.cpp
+++ b/ui/qt/voip_calls_dialog.cpp
@@ -23,6 +23,7 @@
#include <ui_voip_calls_dialog.h>
#include "file.h"
+#include "cfile-int.h"
#include "epan/addr_resolv.h"
#include "epan/dissectors/packet-h225.h"
diff --git a/ui/qt/voip_calls_dialog.h b/ui/qt/voip_calls_dialog.h
index 486a0c4a1f..f6b8e5a84d 100644
--- a/ui/qt/voip_calls_dialog.h
+++ b/ui/qt/voip_calls_dialog.h
@@ -26,6 +26,8 @@
#include <glib.h>
+#include "cfile.h"
+
#include "ui/voip_calls.h"
#include <ui/qt/models/voip_calls_info_model.h>
@@ -34,8 +36,6 @@
#include <QMenu>
-struct _capture_file;
-
class QAbstractButton;
class SequenceInfo;
@@ -57,7 +57,7 @@ public slots:
signals:
void updateFilter(QString filter, bool force = false);
- void captureFileChanged(struct _capture_file *cf);
+ void captureFileChanged(capture_file *cf);
void goToPacket(int packet_num);
protected:
diff --git a/ui/tap-rlc-graph.c b/ui/tap-rlc-graph.c
index 5ff9676e9d..419a3d184d 100644
--- a/ui/tap-rlc-graph.c
+++ b/ui/tap-rlc-graph.c
@@ -37,6 +37,8 @@
#include <epan/packet.h>
#include <epan/tap.h>
+#include "cfile-int.h"
+
/* Return TRUE if the 2 sets of parameters refer to the same channel. */
int compare_rlc_headers(guint16 ueid1, guint16 channelType1, guint16 channelId1, guint8 rlcMode1, guint8 direction1,
guint16 ueid2, guint16 channelType2, guint16 channelId2, guint8 rlcMode2, guint8 direction2,
diff --git a/ui/tap-tcp-stream.c b/ui/tap-tcp-stream.c
index 69b7a87ee7..da58dc70b1 100644
--- a/ui/tap-tcp-stream.c
+++ b/ui/tap-tcp-stream.c
@@ -38,6 +38,8 @@
#include "ui/simple_dialog.h"
+#include "cfile-int.h"
+
#include "tap-tcp-stream.h"
typedef struct _tcp_scan_t {
diff --git a/ui/time_shift.c b/ui/time_shift.c
index 5c0e34ecb7..dbfcd33955 100644
--- a/ui/time_shift.c
+++ b/ui/time_shift.c
@@ -27,11 +27,12 @@
#include <string.h>
#include <math.h>
-
#include "time_shift.h"
#include "ui/ws_ui_util.h"
+#include "cfile-int.h"
+
#ifndef HAVE_FLOORL
#define floorl(x) floor((double)x)
#endif
diff --git a/ui/voip_calls.c b/ui/voip_calls.c
index 4ab23e18ef..fba4cad93b 100644
--- a/ui/voip_calls.c
+++ b/ui/voip_calls.c
@@ -37,6 +37,7 @@
#include <string.h>
#include "epan/epan_dissect.h"
+#include "epan/column-info.h"
#include "epan/packet.h"
#include "epan/proto_data.h"
#include "epan/to_str.h"
diff --git a/wireshark-qt.cpp b/wireshark-qt.cpp
index a4341e5835..f1c0539492 100644
--- a/wireshark-qt.cpp
+++ b/wireshark-qt.cpp
@@ -63,6 +63,7 @@
/* general (not Qt specific) */
#include "file.h"
+#include "cfile-int.h"
#include "epan/color_filters.h"
#include "log.h"