Browse code

- included the right headers after correcting the error in presence_xml.h header file

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@2588 689a6050-402a-0410-94f2-e92a70836424

Anca Vamanu authored on 09/08/2007 13:34:47
Showing 4 changed files
... ...
@@ -35,6 +35,7 @@
35 35
 #include <libxml/parser.h>
36 36
 #include "../../parser/parse_content.h"
37 37
 #include "../../data_lump_rpl.h"
38
+#include "../../ut.h"
38 39
 #include "xcap_auth.h"
39 40
 #include "notify_body.h"
40 41
 #include "add_events.h"
... ...
@@ -63,6 +64,7 @@ int xml_add_events()
63 64
 	event.agg_nbody= pres_agg_nbody;
64 65
 	event.evs_publ_handl= xml_publ_handl;
65 66
 	event.free_body= free_xml_body;
67
+	event.default_expires= 3600;
66 68
 
67 69
 	if(pres_add_event(&event)< 0)
68 70
 	{
... ...
@@ -79,6 +81,7 @@ int xml_add_events()
79 81
 	event.content_type.len= 27;
80 82
 	event.type= WINFO_TYPE;
81 83
 	event.free_body= free_xml_body;
84
+	event.default_expires= 3600;
82 85
 
83 86
 	if(pres_add_event(&event)< 0)
84 87
 	{
... ...
@@ -100,7 +103,7 @@ int xml_add_events()
100 103
 	event.content_type.len= 27;
101 104
 	event.type= PUBL_TYPE;
102 105
 	event.free_body= free_xml_body;
103
-
106
+	event.default_expires= 3600;
104 107
 	if(pres_add_event(&event)< 0)
105 108
 	{
106 109
 		LOG(L_ERR, "PRESENCE_XML: ERROR while adding event dialog;sla\n");
... ...
@@ -30,6 +30,7 @@
30 30
 #include <stdlib.h>
31 31
 #include <libxml/parser.h>
32 32
 
33
+#include "../../mem/mem.h"
33 34
 #include "xcap_auth.h"
34 35
 #include "pidf.h"
35 36
 #include "notify_body.h"
... ...
@@ -35,6 +35,7 @@
35 35
 #include "../../sr_module.h"
36 36
 #include "../../dprint.h"
37 37
 #include "../../str.h"
38
+#include "../../ut.h"
38 39
 #include "../../parser/msg_parser.h"
39 40
 #include "../../mem/mem.h"
40 41
 #include "../presence/bind_presence.h"
... ...
@@ -30,10 +30,12 @@
30 30
 #define _PRES_XML_H_
31 31
 
32 32
 #include "../../db/db.h"
33
+#include "../sl/sl_api.h"
34
+#include "../presence/event_list.h"
33 35
 
34 36
 extern char *xcap_table;  
35 37
 extern add_event_t pres_add_event;
36
-extern db_con_t *pxml_db = NULL;
38
+extern db_con_t *pxml_db;
37 39
 extern db_func_t pxml_dbf;
38 40
 extern int force_active;
39 41
 extern int pidf_manipulation;