aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/main_window.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-09-30 13:19:24 -0700
committerGerald Combs <gerald@wireshark.org>2014-09-30 20:21:35 +0000
commitff307c72bca5318b8e64a7e992dee76232e6c326 (patch)
tree8c6752a49a0662511938063cdbc2e93efc9bd603 /ui/qt/main_window.h
parent00509025e8341dcb9a3bbf74129ad41335c93133 (diff)
Add more HAVE_LIBPCAP checks.
Change-Id: I82e62f6be03a2ae1617cd5b8e430b73ca8fbe7f8 Reviewed-on: https://code.wireshark.org/review/4385 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/main_window.h')
-rw-r--r--ui/qt/main_window.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/qt/main_window.h b/ui/qt/main_window.h
index 68c206e646..0c1fd26ff0 100644
--- a/ui/qt/main_window.h
+++ b/ui/qt/main_window.h
@@ -76,7 +76,9 @@ public:
void setPipeInputHandler(gint source, gpointer user_data, int *child_process, pipe_input_cb_t input_cb);
QString getFilter();
+#ifdef HAVE_LIBPCAP
capture_session *captureSession() { return &cap_session_; }
+#endif
protected:
bool eventFilter(QObject *obj, QEvent *event);
@@ -107,7 +109,6 @@ private:
MainWelcome *main_welcome_;
DisplayFilterCombo *df_combo_box_;
capture_file *cap_file_;
- capture_session cap_session_;
QFont mono_font_;
// XXX - packet_list_, proto_tree_, and byte_view_tab_ should
// probably be full-on values instead of pointers.
@@ -122,6 +123,7 @@ private:
bool capture_stopping_;
bool capture_filter_valid_;
#ifdef HAVE_LIBPCAP
+ capture_session cap_session_;
CaptureInterfacesDialog capture_interfaces_dialog_;
#endif