usermode/library/mcore/src/config.h

00001 /*
00002     Copyright (C) 2011 Computer Sciences Department, 
00003     University of Wisconsin -- Madison
00004 
00005     ----------------------------------------------------------------------
00006 
00007     This file is part of Mnemosyne: Lightweight Persistent Memory, 
00008     originally developed at the University of Wisconsin -- Madison.
00009 
00010     Mnemosyne was originally developed primarily by Haris Volos
00011     with contributions from Andres Jaan Tack.
00012 
00013     ----------------------------------------------------------------------
00014 
00015     Mnemosyne is free software; you can redistribute it and/or
00016     modify it under the terms of the GNU General Public License
00017     as published by the Free Software Foundation, version 2
00018     of the License.
00019  
00020     Mnemosyne is distributed in the hope that it will be useful,
00021     but WITHOUT ANY WARRANTY; without even the implied warranty of
00022     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023     GNU General Public License for more details.
00024 
00025     You should have received a copy of the GNU General Public License
00026     along with this program; if not, write to the Free Software
00027     Foundation, Inc., 51 Franklin Street, Fifth Floor, 
00028     Boston, MA  02110-1301, USA.
00029 
00030 ### END HEADER ###
00031 */
00032 
00033 #ifndef _CONFIG_H
00034 #define _CONFIG_H
00035 
00036 #include "config_generic.h"
00037 
00038 
00039 #define FOREACH_RUNTIME_CONFIG_SETTING(ACTION, group, config, values)          \
00040   ACTION(config, values, group, reset_segments, bool, int, 0,                  \
00041          CONFIG_NO_CHECK, 0)                                                   \
00042   ACTION(config, values, group, segments_dir, string, char *, "/tmp/segments", \
00043          CONFIG_NO_CHECK, 0)                                                   \
00044   ACTION(config, values, group, stats, bool, int, 0, CONFIG_NO_CHECK, 0)       \
00045   ACTION(config, values, group, stats_file, string, char *, "mcore.stats",     \
00046          CONFIG_NO_CHECK, 0)
00047 
00048 
00049 typedef CONFIG_GROUP_STRUCT(mcore) mcore_config_t;
00050 
00051 extern mcore_config_t mcore_runtime_settings;
00052 
00053 void mcore_config_init();
00054 
00055 #endif

Generated on Sat Apr 23 11:43:35 2011 for Mnemosyne by  doxygen 1.4.7