From 3383de3026cd0afb06747069c05a600fd07ec02e Mon Sep 17 00:00:00 2001 From: Mamadou DIOP Date: Tue, 24 May 2016 00:11:39 +0200 Subject: Make ICE dual-satck (IPv46) more versatile --- tinyMEDIA/include/tinymedia/tmedia_session.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tinyMEDIA/include') diff --git a/tinyMEDIA/include/tinymedia/tmedia_session.h b/tinyMEDIA/include/tinymedia/tmedia_session.h index 698f61f..bb11d96 100755 --- a/tinyMEDIA/include/tinymedia/tmedia_session.h +++ b/tinyMEDIA/include/tinymedia/tmedia_session.h @@ -306,10 +306,12 @@ typedef struct tmedia_session_mgr_s { tsk_bool_t offerer; //! local IP address or FQDN char* addr; + tnet_socket_type_t addr_type; //! public IP address or FQDN char* public_addr; - //! whether the @a addr is IPv6 or not (useful when @addr is a FQDN) - tsk_bool_t ipv6; + tnet_socket_type_t public_addr_type; + //! whether to enable IPv6 + tsk_bool_t use_ipv6; struct { uint32_t lo_ver; @@ -538,7 +540,7 @@ tmedia_session_param_type_t; //#define TMEDIA_SESSION_SET_QOS(TYPE_ENUM, STRENGTH_ENUM) tmedia_sptype_qos, (tmedia_qos_stype_t)TYPE_ENUM, (tmedia_qos_strength_t)STRENGTH_ENUM -TINYMEDIA_API tmedia_session_mgr_t* tmedia_session_mgr_create(tmedia_type_t type, const char* addr, tsk_bool_t ipv6, tsk_bool_t offerer); +TINYMEDIA_API tmedia_session_mgr_t* tmedia_session_mgr_create(tmedia_type_t type, const char* addr, tsk_bool_t use_ipv6, tsk_bool_t offerer); TINYMEDIA_API int tmedia_session_mgr_set_media_type(tmedia_session_mgr_t* self, tmedia_type_t type); TINYMEDIA_API int tmedia_session_mgr_set_media_type_2(tmedia_session_mgr_t* self, tmedia_type_t type, tsk_bool_t force); TINYMEDIA_API int tmedia_session_mgr_set_codecs_supported(tmedia_session_mgr_t* self, tmedia_codec_id_t codecs_supported); -- cgit v1.1