Prechádzať zdrojové kódy

presence_conference: removed history and svn ids

Daniel-Constantin Mierla 8 rokov pred
rodič
commit
e4cb624866

+ 5 - 10
src/modules/presence_conference/add_events.c

@@ -1,6 +1,6 @@
 /*
  * add "conference" event to presence module - mariusbucur
- * 
+ *
  * Copyright (C) 2010 Marius Bucur
  * Copyright (C) 2007 Juha Heinanen
  * Copyright (C) 2008 Klaus Darilion, IPCom
@@ -17,13 +17,10 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
- * History:
- * --------
- * 2010-07-12  initial version (mariusbucur)
  */
 
 #include <stdio.h>
@@ -37,7 +34,7 @@
 int conference_add_events(void)
 {
     pres_ev_t event;
-	
+
     /* constructing "conference" event and add it to the list of events packages supported */
     memset(&event, 0, sizeof(pres_ev_t));
     event.name.s = "conference";
@@ -58,12 +55,10 @@ int conference_add_events(void)
     /* modify XML body for each watcher to set the correct "version" */
     event.aux_body_processing = conf_body_setversion;
 
-	
     if (pres_add_event(&event) < 0) {
 		LM_ERR("failed to add event \"conference\"\n");
 		return -1;
     }
-	
+
     return 0;
 }
-

+ 2 - 5
src/modules/presence_conference/add_events.h

@@ -16,13 +16,10 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
- * History:
- * --------
- * 2010-07-12  initial version (mariusbucur)
  */
 
 #ifndef _CONF_ADD_EV_H_

+ 9 - 12
src/modules/presence_conference/notify_body.c

@@ -21,9 +21,6 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
- * History:
- * --------
- * 2010-07-12  initial version (mariusbucur)
  */
 /*! \file
  * \brief Kamailio Presence_Conference :: Notify body handling
@@ -78,12 +75,12 @@ str* conf_agg_nbody(str* pres_user, str* pres_domain, str** body_array, int n, i
 	}
 
 	return n_body;
-}	
+}
 
 str* agregate_xmls(str* pres_user, str* pres_domain, str** body_array, int n, int off_index)
 {
 	int i, j = 0;
-	
+
 	if(body_array == NULL || n == 0)
 		return 0;
 
@@ -115,7 +112,7 @@ str* agregate_xmls(str* pres_user, str* pres_domain, str** body_array, int n, in
 			continue;
 
 		xml_array[j] = xmlParseMemory( body_array[i]->s, body_array[i]->len );
-		
+
 		/* LM_DBG("parsing XML body: [n]=%d, [i]=%d, [j]=%d xml_array[j]=%p\n", n, i, j, xml_array[j] ); */
 
 		if(unlikely(xml_array[j] == NULL))
@@ -124,7 +121,7 @@ str* agregate_xmls(str* pres_user, str* pres_domain, str** body_array, int n, in
 			goto error;
 		}
 		j++;
-		
+
 	}
 
 	if(j == 0)  /* no body */
@@ -206,8 +203,8 @@ str* agregate_xmls(str* pres_user, str* pres_domain, str** body_array, int n, in
 		ERR_MEM(PKG_MEM_STR);
 	}
 
-	xmlDocDumpFormatMemory(doc,(xmlChar**)(void*)&body->s, 
-			&body->len, 1);	
+	xmlDocDumpFormatMemory(doc,(xmlChar**)(void*)&body->s,
+			&body->len, 1);
 
 	for(i=0; i<j; i++)
 	{
@@ -218,7 +215,7 @@ str* agregate_xmls(str* pres_user, str* pres_domain, str** body_array, int n, in
 		xmlFreeDoc(doc);
 	if(xml_array!=NULL)
 		pkg_free(xml_array);
-    
+
 	return body;
 
 error:
@@ -244,7 +241,7 @@ str *conf_body_setversion(subs_t *subs, str *body) {
 	if (!body) {
 		return NULL;
 	}
-	
+
 	xmlDocPtr doc = xmlParseMemory(body->s, body->len);
 	if(!doc) {
 		goto error;
@@ -256,7 +253,7 @@ str *conf_body_setversion(subs_t *subs, str *body) {
 	if(!xmlSetProp(conf_info, BAD_CAST "version", BAD_CAST version_str)) {
 		goto error;
 	}
-	xmlDocDumpFormatMemory(doc,(xmlChar**)(void*)&body->s, 
+	xmlDocDumpFormatMemory(doc,(xmlChar**)(void*)&body->s,
 			&body->len, 1);
 	return NULL;
 error:

+ 2 - 6
src/modules/presence_conference/notify_body.h

@@ -1,5 +1,4 @@
 /*
- *
  * presence_conference module - notify_body header file mariusbucur
  *
  * Copyright (C) 2006 Voice Sistem S.R.L.
@@ -17,13 +16,10 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
- * History:
- * --------
- * 2010-07-12  initial version (mariusbucur)
  */
 /*! \file
  * \brief Kamailio Presence_Conference :: Notify body handling

+ 7 - 12
src/modules/presence_conference/pidf.c

@@ -1,6 +1,4 @@
 /*
- * $Id: pidf.c 1953 2007-04-04 08:50:33Z anca_vamanu $
- *
  * presence module - presence server implementation
  *
  * Copyright (C) 2006 Voice Sistem S.R.L.
@@ -17,13 +15,10 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
- * History:
- * --------
- *  2007-04-14  initial version (anca)
  */
 
 /*! \file
@@ -122,7 +117,7 @@ xmlNodePtr xmlDocGetNodeByName(xmlDocPtr doc, const char *name, const char *ns)
 	return xmlNodeGetNodeByName(cur, name, ns);
 }
 
-char *xmlDocGetNodeContentByName(xmlDocPtr doc, const char *name, 
+char *xmlDocGetNodeContentByName(xmlDocPtr doc, const char *name,
 		const char *ns)
 {
 	xmlNodePtr node = xmlDocGetNodeByName(doc, name, ns);
@@ -154,7 +149,7 @@ time_t xml_parse_dateTime(char* xml_time_str)
 		printf("error: failed to parse time\n");
 		return 0;
 	}
-	
+
 	if(*p== '\0')
 		goto done;
 
@@ -171,7 +166,7 @@ time_t xml_parse_dateTime(char* xml_time_str)
 	if(*p== '\0')
 		goto done;
 
-	
+
 	/* read time zone */
 
 	if(*p== 'Z')
@@ -188,14 +183,14 @@ time_t xml_parse_dateTime(char* xml_time_str)
 		printf("error: failed to parse time\n");
 		return 0;
 	}
-	
+
 	h= (h1- '0')*10+ h2- '0';
 	m= (m1- '0')*10+ m2- '0';
 
 	timezone_diff= sign* ((m+ h* 60)* 60);
 
 done:
-	return (mktime(&tm) + timezone_diff);	
+	return (mktime(&tm) + timezone_diff);
 }
 
 

+ 0 - 5
src/modules/presence_conference/pidf.h

@@ -1,6 +1,4 @@
 /*
- * $Id: pidf.h 1401 2006-12-14 11:12:42Z anca_vamanu $
- *
  * presence module - presence server implementation
  *
  * Copyright (C) 2006 Voice Sistem S.R.L.
@@ -21,9 +19,6 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
- * History:
- * --------
- *  2006-08-15  initial version (anca)
  */
 
 /*! \file

+ 0 - 3
src/modules/presence_conference/presence_conference.c

@@ -21,9 +21,6 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
- * History:
- * --------
- * 2010-07-12  initial version (mariusbucur)
  */
 
 #include <stdio.h>

+ 2 - 5
src/modules/presence_conference/presence_conference.h

@@ -16,13 +16,10 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
- * History:
- * --------
- * 2010-07-12  initial version (mariusbucur)
  */
 
 #ifndef _PRES_CONFERENCE_H_