include/v2l_config.h

Go to the documentation of this file.
00001 /*
00002  *  This program is free software; you can redistribute it and/or modify
00003  *  it under the terms of the GNU General Public License as published by
00004  *  the Free Software Foundation; either version 2 of the License, or
00005  *  (at your option) any later version.
00006  *
00007  *  This program is distributed in the hope that it will be useful,
00008  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00009  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010  *  GNU General Public License for more details.
00011  *
00012  *  You should have received a copy of the GNU General Public License
00013  *  along with this program; if not, write to the Free Software
00014  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00015  */
00016 
00021 #ifndef __V2L_CONFIG_H
00022 #define __V2L_CONFIG_H
00023 
00025 typedef struct v2l_LdapConn* v2l_LdapConnPtr;
00026 
00028 #define V2L_ADMIN "jabberadmin"
00029 
00033 #ifdef _V2L_JABBER2
00034 #define T_CONF config_t
00035 #else
00036 #define T_CONF xmlnode
00037 #endif
00038 
00042 typedef struct v2l_Config
00043 {
00044 #ifndef _V2L_JABBER2
00045   xmlnode config;      
00046 #endif
00047   pool poolref;
00048   v2l_LdapConnPtr master_conn;  
00049   char *host;          
00050   int port;            
00051   char *suffix;        
00052   char *binddn;        
00053   char *bindpw;        
00054   char *filter;        
00055   char *confpath;      
00056   int irishack;        
00057 } v2l_Config;
00058 
00066 extern int v2l_config_init (v2l_Config *self, T_CONF cfgroot);
00067 
00073 extern void v2l_config_shutdown (v2l_Config *self);
00074 #endif

Generated on Sun Oct 7 14:38:12 2007 for vCard2LDAP by  doxygen 1.5.1