mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 03:58:08 +00:00
Add tunnel wrapping for reconnect and logs with handler.
This commit is contained in:
parent
886d80bb6d
commit
bdf17889a8
2 changed files with 12 additions and 0 deletions
|
|
@ -71,6 +71,14 @@ void linphone_tunnel_enable_logs(LinphoneTunnelManager *tunnel, bool_t enabled){
|
|||
bcTunnel(tunnel)->enableLogs(enabled);
|
||||
}
|
||||
|
||||
void linphone_tunnel_enable_logs_with_handler(LinphoneTunnelManager *tunnel, bool_t enabled, LogHandler logHandler){
|
||||
bcTunnel(tunnel)->enableLogs(enabled, logHandler);
|
||||
}
|
||||
|
||||
void linphone_tunnel_reconnect(LinphoneTunnelManager *tunnel){
|
||||
bcTunnel(tunnel)->reconnect();
|
||||
}
|
||||
|
||||
void linphone_tunnel_auto_detect(LinphoneTunnelManager *tunnel){
|
||||
bcTunnel(tunnel)->autoDetect();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@ extern "C"
|
|||
#endif
|
||||
|
||||
typedef struct LinphoneTunnelManager LinphoneTunnelManager;
|
||||
typedef void (*LogHandler)(int log_level, const char *str, va_list l);
|
||||
|
||||
|
||||
LinphoneTunnelManager *linphone_tunnel_get(LinphoneCore *lc);
|
||||
void linphone_tunnel_destroy(LinphoneTunnelManager *tunnel);
|
||||
|
|
@ -43,6 +45,8 @@ void linphone_tunnel_clean_servers(LinphoneTunnelManager *tunnel);
|
|||
void linphone_tunnel_enable(LinphoneTunnelManager *tunnel, bool_t enabled);
|
||||
bool_t linphone_tunnel_enabled(LinphoneTunnelManager *tunnel);
|
||||
void linphone_tunnel_enable_logs(LinphoneTunnelManager *tunnel, bool_t enabled);
|
||||
void linphone_tunnel_enable_logs_with_handler(LinphoneTunnelManager *tunnel, bool_t enabled, LogHandler logHandler);
|
||||
void linphone_tunnel_reconnect(LinphoneTunnelManager *tunnel);
|
||||
void linphone_tunnel_auto_detect(LinphoneTunnelManager *tunnel);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue