From cd9f163eb91d4c70977f669472d5acaf7a4fbe7c Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Thu, 3 Sep 2015 11:18:13 -0700 Subject: Add the IAX2 Analysis dialog. Copied from the RTP Analysis dialog, just like the GTK+ version. Change-Id: I111020bc4073a3a3ba583bdace51a91ee5fef300 Reviewed-on: https://code.wireshark.org/review/10447 Petri-Dish: Gerald Combs Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs --- ui/tap-iax2-analysis.h | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'ui/tap-iax2-analysis.h') diff --git a/ui/tap-iax2-analysis.h b/ui/tap-iax2-analysis.h index 43d196afac..9f4b4b467c 100644 --- a/ui/tap-iax2-analysis.h +++ b/ui/tap-iax2-analysis.h @@ -39,16 +39,9 @@ * @todo what's this? */ -void iax2_analysis( - address *ip_src_fwd, - guint16 port_src_fwd, - address *ip_dst_fwd, - guint16 port_dst_fwd, - address *ip_src_rev, - guint16 port_src_rev, - address *ip_dst_rev, - guint16 port_dst_rev - ); +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ /****************************************************************************/ /* structure that holds the information about the forward and reversed direction */ @@ -86,8 +79,8 @@ typedef struct _tap_iax2_stat_t { guint16 stop_seq_nr; guint32 total_nr; guint32 sequence; - gboolean under; - gint cycles; + gboolean under; /* Unused? */ + gint cycles; /* Unused? */ guint16 pt; int reg_pt; } tap_iax2_stat_t; @@ -104,14 +97,14 @@ typedef struct _tap_iax2_stat_t { #define STAT_FLAG_REG_PT_CHANGE 0x040 #define STAT_FLAG_WRONG_TIMESTAMP 0x080 -/* forward */ -struct _rtp_info; - /* function for analysing an IAX2 packet. Called from iax2_analysis. */ extern void iax2_packet_analyse(tap_iax2_stat_t *statinfo, packet_info *pinfo, const struct _iax2_info_t *iax2info); +#ifdef __cplusplus +} +#endif /* __cplusplus */ #endif /* __TAP_IAX2_ANALYSIS_H__ */ -- cgit v1.2.1