summaryrefslogtreecommitdiff
path: root/src/Erebos/ICE/pjproject.h
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-02-22 20:58:04 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2025-02-25 21:03:49 +0100
commit8a5898cc06d54c30679678eb204725852786ee84 (patch)
treec454a854348af64e08a7a232d5ecac2a61da6092 /src/Erebos/ICE/pjproject.h
parent1f6eb330e9fd9f0004dec4783496d36520dbd2a3 (diff)
ICE config for each discovery peer
Diffstat (limited to 'src/Erebos/ICE/pjproject.h')
-rw-r--r--src/Erebos/ICE/pjproject.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Erebos/ICE/pjproject.h b/src/Erebos/ICE/pjproject.h
index e230e75..e4fcbdb 100644
--- a/src/Erebos/ICE/pjproject.h
+++ b/src/Erebos/ICE/pjproject.h
@@ -3,7 +3,12 @@
#include <pjnath.h>
#include <HsFFI.h>
-pj_ice_strans * ice_create(pj_ice_sess_role role, HsStablePtr sptr, HsStablePtr cb);
+pj_ice_strans_cfg * ice_cfg_create( const char * stun_server, uint16_t stun_port,
+ const char * turn_server, uint16_t turn_port );
+void ice_cfg_free( pj_ice_strans_cfg * cfg );
+
+pj_ice_strans * ice_create( const pj_ice_strans_cfg *, pj_ice_sess_role role,
+ HsStablePtr sptr, HsStablePtr cb );
void ice_destroy(pj_ice_strans * strans);
ssize_t ice_encode_session(pj_ice_strans *, char * ufrag, char * pass,