summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Hiszpanski <chris.hiszpanski@verkada.com>2022-05-23 00:51:00 -0700
committerChris Hiszpanski <chris.hiszpanski@verkada.com>2022-05-23 00:51:00 -0700
commitb24176ea5328b76b246c519a469e62f53dbe8a69 (patch)
tree00050de67326c6e82dcfd7b9469a2b3ced95e431
parent1c21817646f1f3c8fc99f1fd6ad04324641da383 (diff)
Fix hardcoded num urls per ice server
-rw-r--r--tinyrtc.h3
1 files changed, 2 insertions, 1 deletions
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);
/**