modules_k/cpl-c/cpl_env.h

00001 /*
00002  * $Id$
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  * History:
00023  * --------
00024  * 11-06-1004:  created (bogdan)
00025  */
00026 
00027 #ifndef _CPL_C_ENV_H
00028 #define _CPL_C_ENV_H
00029 
00030 #include "../../str.h"
00031 #include "../../usr_avp.h"
00032 #include "../usrloc/usrloc.h"
00033 #include "../../modules/tm/tm_load.h"
00034 #include "../../modules/sl/sl.h"
00035 
00036 struct cpl_enviroment {
00037         char  *log_dir;         /* dir where the user log should be dumped */
00038         int    proxy_recurse;   /* numbers of proxy redirection accepted */
00039         int    proxy_route;     /* script route to be run before proxy */
00040         int    case_sensitive;  /* is user part case sensitive ? */
00041         str    realm_prefix;    /* domain prefix to be ignored */
00042         int    cmd_pipe[2];     /* communication pipe with aux. process */
00043         str    orig_tz;         /* a copy of the original TZ; kept as a null
00044                              * terminated string in "TZ=value" format;
00045                              * used only by run_time_switch */
00046         udomain_t*  lu_domain;  /* domain used for lookup */
00047         int lu_append_branches; /* how many branches lookup should add */
00048         int timer_avp_type;     /* specs - type and name - of the timer AVP */
00049         int_str timer_avp;
00050         int use_domain;
00051 };
00052 
00053 
00054 struct cpl_functions {
00055         struct tm_binds tmb;     /* Structure with pointers to tm funcs */
00056         usrloc_api_t ulb;        /* Structure with pointers to usrloc funcs */
00057         sl_api_t slb;            /* Structure with pointers to sl funcs */
00058 };
00059 
00060 extern struct cpl_enviroment cpl_env;
00061 extern struct cpl_functions  cpl_fct;
00062 
00063 #endif
00064 
00065