summaryrefslogtreecommitdiff
path: root/ui/qt/rtp_analysis_dialog.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-10-08 12:52:32 -0700
committerGerald Combs <gerald@wireshark.org>2015-10-21 21:18:59 +0000
commit18bec424fb1c1404370f2fbe35bebcf5ab2eb2af (patch)
tree6dca4183227a4944c368a519aeac677c42e17ca5 /ui/qt/rtp_analysis_dialog.h
parentc70ab1a1221706b89a9473e1ff9de3753b3e3f13 (diff)
downloadwireshark-18bec424fb1c1404370f2fbe35bebcf5ab2eb2af.tar.gz
Qt: Wire up the RTP Streams "Analyze" button.
Change-Id: I0ad5d689b6c05fd3f98ba3304a5d99297db2bd6c Reviewed-on: https://code.wireshark.org/review/11198 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/rtp_analysis_dialog.h')
-rw-r--r--ui/qt/rtp_analysis_dialog.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/ui/qt/rtp_analysis_dialog.h b/ui/qt/rtp_analysis_dialog.h
index 68a749ff75..43b3c7a88a 100644
--- a/ui/qt/rtp_analysis_dialog.h
+++ b/ui/qt/rtp_analysis_dialog.h
@@ -48,7 +48,7 @@ class RtpAnalysisDialog : public WiresharkDialog
Q_OBJECT
public:
- explicit RtpAnalysisDialog(QWidget &parent, CaptureFile &cf);
+ explicit RtpAnalysisDialog(QWidget &parent, CaptureFile &cf, struct _rtp_stream_info *stream_fwd = 0, struct _rtp_stream_info *stream_rev = 0);
~RtpAnalysisDialog();
signals:
@@ -82,19 +82,26 @@ private:
Ui::RtpAnalysisDialog *ui;
enum StreamDirection { dir_both_, dir_forward_, dir_reverse_ };
+ // XXX These are copied to and from rtp_stream_info_t structs. Should
+ // we just have a pair of those instead?
address src_fwd_;
guint32 port_src_fwd_;
address dst_fwd_;
guint32 port_dst_fwd_;
guint32 ssrc_fwd_;
- struct _rtp_stream_info *stream_fwd_;
+ guint32 packet_count_fwd_;
+ guint32 setup_frame_number_fwd_;
+ nstime_t start_rel_time_fwd_;
address src_rev_;
guint32 port_src_rev_;
address dst_rev_;
guint32 port_dst_rev_;
guint32 ssrc_rev_;
- struct _rtp_stream_info *stream_rev_;
+ guint32 packet_count_rev_;
+ guint32 setup_frame_number_rev_;
+ nstime_t start_rel_time_rev_;
+
int num_streams_;
tap_rtp_stat_t fwd_statinfo_;
@@ -123,6 +130,8 @@ private:
QMenu stream_ctx_menu_;
QMenu graph_ctx_menu_;
+ void findStreams();
+
// Tap callbacks
static void tapReset(void *tapinfo_ptr);
static gboolean tapPacket(void *tapinfo_ptr, packet_info *pinfo, epan_dissect_t *, const void *rtpinfo_ptr);