00001 /* 00002 * $Id: bind_presence.c 1979 2007-04-06 13:24:12Z anca_vamanu $ 00003 * 00004 * presence module - presence server implementation 00005 * 00006 * Copyright (C) 2006 Voice Sistem S.R.L. 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 * History: 00025 * -------- 00026 * 2007-04-17 initial version (anca) 00027 */ 00028 00029 /*! \file 00030 * \brief Kamailio presence module 00031 * \ingroup presence 00032 */ 00033 00034 #include <stdio.h> 00035 #include <stdlib.h> 00036 #include "../../dprint.h" 00037 #include "../../sr_module.h" 00038 #include "presence.h" 00039 #include "bind_presence.h" 00040 00041 int bind_presence(presence_api_t* api) 00042 { 00043 if (!api) { 00044 LM_ERR("Invalid parameter value\n"); 00045 return -1; 00046 } 00047 00048 api->add_event = add_event; 00049 api->contains_event= contains_event; 00050 api->search_event= search_event; 00051 api->get_event_list= get_event_list; 00052 api->update_watchers_status= update_watchers_status; 00053 api->new_shtable= new_shtable; 00054 api->destroy_shtable= destroy_shtable; 00055 api->insert_shtable= insert_shtable; 00056 api->search_shtable= search_shtable; 00057 api->delete_shtable= delete_shtable; 00058 api->update_shtable= update_shtable; 00059 api->mem_copy_subs= mem_copy_subs; 00060 api->update_db_subs= update_db_subs; 00061 api->extract_sdialog_info= extract_sdialog_info; 00062 api->get_sphere= get_sphere; 00063 return 0; 00064 } 00065 00066
1.5.6