usrloc.h

Go to the documentation of this file.
00001 /*
00002  * $Id: usrloc.h 5193 2008-11-13 10:21:53Z henningw $
00003  *
00004  * Copyright (C) 2001-2003 FhG Fokus
00005  *
00006  * This file is part of Kamailio, a free SIP server.
00007  *
00008  * Kamailio is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version
00012  *
00013  * Kamailio is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License 
00019  * along with this program; if not, write to the Free Software 
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  */
00022 
00023 /*! \file
00024  *  \brief USRLOC - module API exports interface
00025  *  \ingroup usrloc
00026  */
00027 
00028 #ifndef USRLOC_H
00029 #define USRLOC_H
00030 
00031 
00032 #include "dlist.h"
00033 #include "udomain.h"
00034 #include "urecord.h"
00035 #include "ucontact.h"
00036 #include "ul_callback.h"
00037 
00038 
00039 /*! usrloc API export structure */
00040 typedef struct usrloc_api {
00041    int           use_domain; /*! use_domain module parameter */
00042    int           db_mode;    /*! db_mode module parameter */
00043    unsigned int  nat_flag;   /*! nat_flag module parameter */
00044 
00045    register_udomain_t   register_udomain;
00046    get_all_ucontacts_t  get_all_ucontacts;
00047 
00048    insert_urecord_t     insert_urecord;
00049    delete_urecord_t     delete_urecord;
00050    get_urecord_t        get_urecord;
00051    lock_udomain_t       lock_udomain;
00052    unlock_udomain_t     unlock_udomain;
00053 
00054    release_urecord_t    release_urecord;
00055    insert_ucontact_t    insert_ucontact;
00056    delete_ucontact_t    delete_ucontact;
00057    get_ucontact_t       get_ucontact;
00058 
00059    update_ucontact_t    update_ucontact;
00060 
00061    register_ulcb_t      register_ulcb;
00062 } usrloc_api_t;
00063 
00064 
00065 /*! usrloc API export bind function */
00066 typedef int (*bind_usrloc_t)(usrloc_api_t* api);
00067 
00068 
00069 #endif

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