diff options
Diffstat (limited to '')
-rw-r--r-- | ui/mcast_stream.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/ui/mcast_stream.h b/ui/mcast_stream.h index fc5c5983..09eee0f3 100644 --- a/ui/mcast_stream.h +++ b/ui/mcast_stream.h @@ -29,17 +29,17 @@ extern "C" { /* typedefs for sliding window and buffer size */ typedef struct buffer{ nstime_t *buff; /* packet times */ - gint32 first; /* pointer to the first element */ - gint32 last; /* pointer to the last element */ - gint32 burstsize; /* current burst */ - gint32 topburstsize; /* maximum burst in the refresh interval*/ - gint32 count; /* packet counter */ - gint32 burststatus; /* burst status */ - gint32 numbursts; /* number of bursts */ - gint32 buffusage; /* buffer usage */ - gint32 buffstatus; /* buffer status */ - gint32 numbuffalarms; /* number of alarms triggered by buffer underruns */ - gint32 topbuffusage; /* top buffer usage in refresh interval */ + int32_t first; /* pointer to the first element */ + int32_t last; /* pointer to the last element */ + int32_t burstsize; /* current burst */ + int32_t topburstsize; /* maximum burst in the refresh interval*/ + int32_t count; /* packet counter */ + int32_t burststatus; /* burst status */ + int32_t numbursts; /* number of bursts */ + int32_t buffusage; /* buffer usage */ + int32_t buffstatus; /* buffer status */ + int32_t numbuffalarms; /* number of alarms triggered by buffer underruns */ + int32_t topbuffusage; /* top buffer usage in refresh interval */ double maxbw; /* Maximum bandwidth usage. Bits/s */ } t_buffer; @@ -47,20 +47,20 @@ typedef struct buffer{ /* defines an mcast stream */ typedef struct _mcast_stream_info { address src_addr; - guint16 src_port; + uint16_t src_port; address dest_addr; - guint16 dest_port; - guint32 npackets; + uint16_t dest_port; + uint32_t npackets; double apackets; - guint32 total_bytes; + uint32_t total_bytes; double average_bw; /* Bits/s */ - guint32 first_frame_num; /* frame number of first frame */ + uint32_t first_frame_num; /* frame number of first frame */ /* start of recording (GMT) of this stream */ nstime_t start_abs; /* absolute stream start time */ nstime_t start_rel; /* stream start time relative to first packet in capture */ nstime_t stop_rel; /* stream stop time relative to first packet in capture */ - guint16 vlan_id; + uint16_t vlan_id; /*for the sliding window */ t_buffer element; @@ -75,22 +75,22 @@ typedef void (*mcaststream_tap_draw_cb)(mcaststream_tapinfo_t *tapinfo); /* structure that holds the information about all detected streams */ /* struct holding all information of the tap */ struct _mcaststream_tapinfo { - gpointer user_data; /* User data pointer */ + void *user_data; /* User data pointer */ mcaststream_tap_reset_cb tap_reset; /**< tap reset callback */ mcaststream_tap_draw_cb tap_draw; /**< tap draw callback */ GList* strinfo_list; /* list of mcast_stream_info_t */ - guint32 npackets; /* total number of mcast packets of all streams */ + uint32_t npackets; /* total number of mcast packets of all streams */ mcast_stream_info_t* allstreams; /* structure holding information common for all streams */ - gboolean is_registered; /* if the tap listener is currently registered or not */ + bool is_registered; /* if the tap listener is currently registered or not */ }; -extern gint32 mcast_stream_trigger; -extern gint32 mcast_stream_bufferalarm; -extern guint16 mcast_stream_burstint; -extern gint32 mcast_stream_emptyspeed; -extern gint32 mcast_stream_cumulemptyspeed; +extern int32_t mcast_stream_trigger; +extern int32_t mcast_stream_bufferalarm; +extern uint16_t mcast_stream_burstint; +extern int32_t mcast_stream_emptyspeed; +extern int32_t mcast_stream_cumulemptyspeed; /****************************************************************************/ /* INTERFACE */ |