From 04bea0d54b283d9df68690726a033f5f5e137171 Mon Sep 17 00:00:00 2001 From: yanmorin <yanmorin> Date: Tue, 13 Sep 2005 14:23:52 +0000 Subject: [PATCH] #include removal, re-added the sipvoiplink destructor delete eventthread inside the sipvoiplink destructor --- src/call.cpp | 2 -- src/managerimpl.cpp | 3 ++- src/sipvoiplink.cpp | 21 ++++++++------------- src/sipvoiplink.h | 8 +++----- 4 files changed, 13 insertions(+), 21 deletions(-) diff --git a/src/call.cpp b/src/call.cpp index 997bcde064..a0e56d779a 100644 --- a/src/call.cpp +++ b/src/call.cpp @@ -20,8 +20,6 @@ #include <iostream> #include "call.h" -#include "manager.h" -#include "sipvoiplink.h" #include "voIPLink.h" diff --git a/src/managerimpl.cpp b/src/managerimpl.cpp index 179f6d7757..bb81b8beaa 100644 --- a/src/managerimpl.cpp +++ b/src/managerimpl.cpp @@ -28,12 +28,14 @@ //#include <arpa/inet.h> #include <cc++/thread.h> + #include <cstdlib> #include <iostream> #include <fstream> #include <string> #include <vector> +#include "sipvoiplink.h" #include "manager.h" #include "audio/audiocodec.h" #include "audio/audiolayer.h" @@ -44,7 +46,6 @@ #include "configuration.h" #include "configurationtree.h" #include "error.h" -#include "sipvoiplink.h" #include "skin.h" #include "user_cfg.h" #include "voIPLink.h" diff --git a/src/sipvoiplink.cpp b/src/sipvoiplink.cpp index 443e5420af..6db2eb3dc0 100644 --- a/src/sipvoiplink.cpp +++ b/src/sipvoiplink.cpp @@ -18,31 +18,22 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <sys/time.h> +//#include <sys/time.h> #include <eXosip2/eXosip.h> #include <osip2/osip.h> -#include <osipparser2/osip_const.h> -#include <osipparser2/osip_headers.h> -#include <osipparser2/osip_body.h> -#include <cc++/thread.h> -#include <stdexcept> -#include <iostream> #include <string> -#include <vector> -#include "global.h" #include "sipvoiplink.h" -#include "audio/audiortp.h" +#include "global.h" #include "audio/codecDescriptor.h" -#include "call.h" #include "error.h" -#include "eventthread.h" #include "manager.h" #include "sipcall.h" #include "user_cfg.h" -#include "voIPLink.h" +#include "eventthread.h" + using namespace ost; using namespace std; @@ -66,6 +57,10 @@ SipVoIPLink::SipVoIPLink (short id) _evThread = new EventThread(this); } +SipVoIPLink::~SipVoIPLink(void) { + delete _evThread; +} + bool SipVoIPLink::checkNetwork (void) { diff --git a/src/sipvoiplink.h b/src/sipvoiplink.h index 3cb5ecd213..f6efdfb681 100644 --- a/src/sipvoiplink.h +++ b/src/sipvoiplink.h @@ -22,14 +22,11 @@ #ifndef __SIP_VOIP_LINK_H__ #define __SIP_VOIP_LINK_H__ -#include <eXosip2/eXosip.h> -#include <osipparser2/sdp_message.h> - -#include <string> #include <vector> +#include <eXosip2/eXosip.h> +//#include <osipparser2/sdp_message.h> #include "voIPLink.h" -#include "eventthread.h" #include "audio/audiortp.h" using namespace std; @@ -65,6 +62,7 @@ using namespace std; class AudioCodec; class CodecDescriptor; class SipCall; +class EventThread; typedef vector< CodecDescriptor* > CodecDescriptorVector; -- GitLab