presence.h

Go to the documentation of this file.
00001 /*
00002  * $Id
00003  *
00004  * presence - presence server implementation
00005  * 
00006  * Copyright (C) 2006 Voice Sistem SRL
00007  *
00008  * This file is part of Kamailio, a free SIP server.
00009  *
00010  * Kamailio is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * Kamailio is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00023  *
00024  *
00025  * History:
00026  * ---------
00027  *  2006-10-09  first version (anca)
00028  */
00029 
00030 /*! \file
00031  * \brief Kamailio presence module :: Core
00032  * \ingroup presence 
00033  */
00034 
00035 
00036 #ifndef PA_MOD_H
00037 #define PA_MOD_H
00038 
00039 #include "../../parser/msg_parser.h"
00040 #include "../tm/tm_load.h"
00041 #include "../sl/sl_api.h"
00042 #include "../../db/db.h"
00043 #include "../../parser/parse_from.h"
00044 #include "event_list.h"
00045 #include "hash.h"
00046 
00047 /* TM bind */
00048 extern struct tm_binds tmb;
00049 /* DB module bind */
00050 extern db_func_t pa_dbf;
00051 extern db_con_t* pa_db;
00052 
00053 /* PRESENCE database */
00054 extern str db_url;
00055 extern str presentity_table;
00056 extern str active_watchers_table;
00057 extern str watchers_table; 
00058 
00059 extern int counter;
00060 extern int pid;
00061 extern int startup_time;
00062 extern char *to_tag_pref;
00063 extern int expires_offset;
00064 extern struct sl_binds slb;
00065 extern str server_address;
00066 extern int max_expires;
00067 extern int fallback2db;
00068 extern int sphere_enable;
00069 extern int shtable_size;
00070 extern shtable_t subs_htable;
00071 
00072 extern int phtable_size;
00073 extern phtable_t* pres_htable;
00074 
00075 int update_watchers_status(str pres_uri, pres_ev_t* ev, str* rules_doc);
00076 
00077 #endif /* PA_MOD_H */

Generated on Thu May 24 08:00:52 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6