cr_config.h

Go to the documentation of this file.
00001 /*
00002  * $Id: cr_config.h 5129 2008-10-24 08:28:01Z henningw $
00003  *
00004  * Copyright (C) 2007-2008 1&1 Internet AG
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 /**
00024  * \file cr_config.h
00025  * \brief Functions for load and save routing data from a config file.
00026  * \ingroup carrierroute
00027  * - Module; \ref carrierroute
00028  */
00029 
00030 #ifndef CR_CONFIG_H
00031 #define CR_CONFIG_H
00032 
00033 #include "cr_data.h"
00034 
00035 
00036 /**
00037  * Loads the routing data from the config file given in global
00038  * variable config_data and stores it in routing tree rd.
00039  *
00040  * @param rd Pointer to the route data tree where the routing data
00041  * shall be loaded into
00042  *
00043  * @return 0 means ok, -1 means an error occured
00044  *
00045  */
00046 int load_config(struct route_data_t * rd);
00047 
00048 
00049 /**
00050  * Stores the routing data rd in config_file
00051  *
00052  * @param rd Pointer to the routing tree which shall be saved to file
00053  *
00054  * @return 0 means ok, -1 means an error occured
00055  *
00056  */
00057 int save_config(struct route_data_t * rd);
00058 
00059 #endif

Generated on Mon May 21 18:00:25 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6