[Freeswitch-svn] [commit] r5411 - in freeswitch/trunk/src: . include mod/endpoints/mod_dingaling mod/endpoints/mod_sofia

Freeswitch SVN mikej at freeswitch.org
Wed Jun 20 05:02:30 EDT 2007


Author: mikej
Date: Wed Jun 20 05:02:30 2007
New Revision: 5411

Modified:
   freeswitch/trunk/src/include/switch.h
   freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
   freeswitch/trunk/src/switch_rtp.c
   freeswitch/trunk/src/switch_stun.c

Log:
only include switch_stun.h where needed.  We use some c99isms in this header that do not get along well with some c++ compilers.

Modified: freeswitch/trunk/src/include/switch.h
==============================================================================
--- freeswitch/trunk/src/include/switch.h	(original)
+++ freeswitch/trunk/src/include/switch.h	Wed Jun 20 05:02:30 2007
@@ -99,7 +99,6 @@
 #include <switch_resample.h>
 #include <switch_ivr.h>
 #include <switch_rtp.h>
-#include <switch_stun.h>
 #include <switch_log.h>
 #include <switch_xml.h>
 #include <switch_core_event_hook.h>

Modified: freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c	Wed Jun 20 05:02:30 2007
@@ -30,6 +30,7 @@
  *
  */
 #include <switch.h>
+#include <switch_stun.h>
 #include <libdingaling.h>
 #ifdef SWITCH_HAVE_ODBC
 #include <switch_odbc.h>

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	Wed Jun 20 05:02:30 2007
@@ -33,6 +33,7 @@
  *
  */
 #include "mod_sofia.h"
+#include <switch_stun.h>
 
 switch_status_t sofia_glue_tech_choose_video_port(private_object_t *tech_pvt);
 switch_status_t sofia_glue_tech_set_video_codec(private_object_t *tech_pvt, int force);

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Wed Jun 20 05:02:30 2007
@@ -32,6 +32,7 @@
  */
 
 #include <switch.h>
+#include <switch_stun.h>
 #undef PACKAGE_NAME
 #undef PACKAGE_STRING
 #undef PACKAGE_TARNAME

Modified: freeswitch/trunk/src/switch_stun.c
==============================================================================
--- freeswitch/trunk/src/switch_stun.c	(original)
+++ freeswitch/trunk/src/switch_stun.c	Wed Jun 20 05:02:30 2007
@@ -31,6 +31,7 @@
  *
  */
 #include <switch.h>
+#include <switch_stun.h>
 
 struct value_mapping {
 	const uint32_t value;



More information about the Freeswitch-svn mailing list