diff --git a/Makefile.am b/Makefile.am index 15cf2a90d..400e064fb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -94,6 +94,10 @@ if BUILD_ZRTP WINBINDIST_FILES+=./bin/libzrtpcpp.dll ./bin/msys-1.0.dll ./bin/msys-crypto-1.0.0.dll endif +if BUILD_TUNNEL +WINBINDIST_FILES+=./bin/libtunnel-0.dll +endif + other-cherrypick: cd $(GTK_PREFIX) && \ for file in $(WINBINDIST_FILES) ; do \ diff --git a/coreapi/Makefile.am b/coreapi/Makefile.am index fdcaefdcf..eab5bdc5c 100644 --- a/coreapi/Makefile.am +++ b/coreapi/Makefile.am @@ -56,9 +56,6 @@ liblinphone_la_LIBADD= \ $(ORTP_LIBS) $(OPENSSL_LIBS) \ $(TUNNEL_LIBS) -if BUILD_WIN32 -liblinphone_la_LIBADD+=$(top_builddir)/oRTP/src/libortp.la -endif if BUILD_TESTS noinst_PROGRAMS=test_lsd test_ecc diff --git a/coreapi/TunnelManager.cc b/coreapi/TunnelManager.cc index 2243119d4..bbf9cc87d 100644 --- a/coreapi/TunnelManager.cc +++ b/coreapi/TunnelManager.cc @@ -68,23 +68,9 @@ int TunnelManager::eXosipSelect(int max_fds, fd_set *s1, fd_set *s2, fd_set *s3, TunnelManager* lTunnelMgr=(TunnelManager*)userdata; if (tv!=0 && tv->tv_sec){ /*this is the select from udp.c, the one that is interesting to us*/ - int i; - int udp_fd=eXosip_get_udp_socket(); - int controlfd=-1; + NativeSocket udp_fd=(NativeSocket)eXosip_get_udp_socket(); + NativeSocket controlfd=(NativeSocket)eXosip_get_control_fd(); - /* - Find the udp fd and the control fd - */ - for(i=0;igetUserPointer(); + TunnelManager *manager=(TunnelManager*)s->getUserPointer(); manager->closeRtpTransport(t, s); } void TunnelManager::closeRtpTransport(RtpTransport *t, TunnelSocket *s){ @@ -166,7 +152,7 @@ void TunnelManager::closeRtpTransport(RtpTransport *t, TunnelSocket *s){ } static RtpTransport *sCreateRtpTransport(void* userData, int port){ - return ((TunnelManager::TunnelManager *) userData)->createRtpTransport(port); + return ((TunnelManager *) userData)->createRtpTransport(port); } RtpTransport *TunnelManager::createRtpTransport(int port){ diff --git a/coreapi/TunnelManager.hh b/coreapi/TunnelManager.hh index 89044cce7..0cc560e90 100644 --- a/coreapi/TunnelManager.hh +++ b/coreapi/TunnelManager.hh @@ -12,8 +12,9 @@ #define __TUNNEL_CLIENT_MANAGER_H__ #include #include -#include "linphonecore.h" #include "tunnel/client.hh" +#include "linphonecore.h" + extern "C" { #include "eXosip2/eXosip_transport_hook.h" } diff --git a/coreapi/linphone_tunnel.cc b/coreapi/linphone_tunnel.cc index 5afccff3d..120b1b12b 100644 --- a/coreapi/linphone_tunnel.cc +++ b/coreapi/linphone_tunnel.cc @@ -23,9 +23,8 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - -#include "linphone_tunnel.h" #include "TunnelManager.hh" +#include "linphone_tunnel.h" #include "linphonecore.h" #include "private.h" #include "lpconfig.h" diff --git a/tunnel b/tunnel index 3c19ce5fd..7ab47085c 160000 --- a/tunnel +++ b/tunnel @@ -1 +1 @@ -Subproject commit 3c19ce5fd922b926c1ee16a90633986c6e585af3 +Subproject commit 7ab47085cf698660e9fe17c2c4f3255cd5d5a8a5