From b24176ea5328b76b246c519a469e62f53dbe8a69 Mon Sep 17 00:00:00 2001 From: Chris Hiszpanski Date: Mon, 23 May 2022 00:51:00 -0700 Subject: Fix hardcoded num urls per ice server --- tinyrtc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tinyrtc.h b/tinyrtc.h index 1ff31e4..83666d1 100644 --- a/tinyrtc.h +++ b/tinyrtc.h @@ -52,7 +52,7 @@ struct trtc_peerconn_t; struct trtc_ice_server_t { char credential[TRTC_MAX_ICE_SERVER_CREDENTIAL_SIZE]; - char urls[3][TRTC_MAX_ICE_SERVER_URL_SIZE]; + char urls[TRTC_MAX_ICE_SERVER_URLS][TRTC_MAX_ICE_SERVER_URL_SIZE]; char username[TRTC_MAX_ICE_SERVER_USERNAME_SIZE]; }; @@ -88,6 +88,7 @@ void trtc_init(); * \return Peer connection. NULL if all peer connections are already in use. */ struct trtc_peerconn_t* trtc_peer_connection(struct trtc_config_t cfg); + void trtc_peer_connection_destroy(struct trtc_peerconn_t* pc); /** -- cgit v1.2.3