aboutsummaryrefslogtreecommitdiffstats
path: root/ui/tap-rtp-common.h
diff options
context:
space:
mode:
authorJiri Novak <j.novak@netsystem.cz>2018-06-21 15:16:03 +0200
committerAnders Broman <a.broman58@gmail.com>2018-06-25 14:16:26 +0000
commit87973bf516432756f6948e969dbe9d6aa8a27017 (patch)
tree121c07a3ba525f05e44fcb75ad1b6f7b110a6227 /ui/tap-rtp-common.h
parent59c0b48d0aee24dc4efa32b459ef2822a6e52c07 (diff)
RTP: Common functions for allocation/deallocation of rtpstream_info_t
Change-Id: I9a0a11d238473a7c57d85547dca0713ed421a500 Reviewed-on: https://code.wireshark.org/review/28417 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/tap-rtp-common.h')
-rw-r--r--ui/tap-rtp-common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/tap-rtp-common.h b/ui/tap-rtp-common.h
index 48186c2353..0b997b60e1 100644
--- a/ui/tap-rtp-common.h
+++ b/ui/tap-rtp-common.h
@@ -71,6 +71,16 @@ typedef struct _rtpstream_info_calc {
} rtpstream_info_calc_t;
/**
+ * Funcions for init and destroy of rtpstream_info_t and attached structures
+ */
+void rtpstream_info_init(rtpstream_info_t* info);
+rtpstream_info_t *rtpstream_info_malloc_and_init(void);
+void rtpstream_info_copy_deep(rtpstream_info_t *dest, const rtpstream_info_t *src);
+rtpstream_info_t *rtpstream_info_malloc_and_copy_deep(const rtpstream_info_t *src);
+void rtpstream_info_free_data(rtpstream_info_t* info);
+void rtpstream_info_free_all(rtpstream_info_t* info);
+
+/**
* Compares two RTP stream infos (GCompareFunc style comparison function)
*
* @return -1,0,1