/***************************************************************************
 *   Copyright (C) 2004-2006 by EVER Sp. z o.o.                                 *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef MAP_H
#define MAP_H

#include "structs.h"
#include "ioctldef.h"
#include "conf.h"

extern sapp_config g_appcfg;
extern suser_config g_usrcfg;
extern char *str_ext_config;
extern bool bQuietInit;
extern bool bModalApp;

/* 
 * Main config mapping structure
 */
typedef struct tagConfigMap {
	char	*cfgitem_name;			/* config name */
	bool	integraltype;			/* is it an integral type? */
	void	*cfgitem_addr;			/* address of variable which may keep converted item data */
	char	*defValue;				/* default value */
} config_map;

int compile_main_config_map(CConf &pconf);
int compile_user_config_map(CConf &pconf);

#endif/*MAP_H*/
