[Freeswitch-svn] [commit] r4893 - in freeswitch/trunk/src: . include

Freeswitch SVN mikej at freeswitch.org
Sun Apr 8 12:24:57 EDT 2007


Author: mikej
Date: Sun Apr  8 12:24:57 2007
New Revision: 4893

Modified:
   freeswitch/trunk/src/include/switch_xml.h
   freeswitch/trunk/src/switch_xml.c

Log:
export some functions for dll linkage in the windows build.

Modified: freeswitch/trunk/src/include/switch_xml.h
==============================================================================
--- freeswitch/trunk/src/include/switch_xml.h	(original)
+++ freeswitch/trunk/src/include/switch_xml.h	Sun Apr  8 12:24:57 2007
@@ -222,7 +222,7 @@
 ///\param name the name of the tag
 ///\param off the offset
 ///\return an xml node or NULL
-	 switch_xml_t switch_xml_add_child(switch_xml_t xml, const char *name, switch_size_t off);
+	 SWITCH_DECLARE(switch_xml_t) switch_xml_add_child(switch_xml_t xml, const char *name, switch_size_t off);
 
 ///\brief wrapper for switch_xml_add_child() that strdup()s name
 ///\param xml the xml node
@@ -235,7 +235,7 @@
 ///\param xml the xml node
 ///\param txt the text
 ///\return an xml node or NULL
-	 switch_xml_t switch_xml_set_txt(switch_xml_t xml, const char *txt);
+	 SWITCH_DECLARE(switch_xml_t) switch_xml_set_txt(switch_xml_t xml, const char *txt);
 
 ///\brief wrapper for switch_xml_set_txt() that strdup()s txt
 ///\ sets the character content for the given tag and returns the tag

Modified: freeswitch/trunk/src/switch_xml.c
==============================================================================
--- freeswitch/trunk/src/switch_xml.c	(original)
+++ freeswitch/trunk/src/switch_xml.c	Sun Apr  8 12:24:57 2007
@@ -1570,7 +1570,7 @@
 
 // Adds a child tag. off is the offset of the child tag relative to the start
 // of the parent tag's character content. Returns the child tag
-switch_xml_t switch_xml_add_child(switch_xml_t xml, const char *name, switch_size_t off)
+SWITCH_DECLARE(switch_xml_t) switch_xml_add_child(switch_xml_t xml, const char *name, switch_size_t off)
 {
 	switch_xml_t child;
 
@@ -1587,7 +1587,7 @@
 }
 
 // sets the character content for the given tag and returns the tag
-switch_xml_t switch_xml_set_txt(switch_xml_t xml, const char *txt)
+SWITCH_DECLARE(switch_xml_t) switch_xml_set_txt(switch_xml_t xml, const char *txt)
 {
 	if (!xml)
 		return NULL;



More information about the Freeswitch-svn mailing list