diff options
author | crunchy <crunchy> | 2002-10-29 20:03:33 +0000 |
---|---|---|
committer | crunchy <crunchy> | 2002-10-29 20:03:33 +0000 |
commit | c7351455575348d9d9847604069ee15132f2d8e0 (patch) | |
tree | 042afb35dc47c212456af5a5543c2c4e65763463 /mpiosh/config.h | |
parent | 037e02905b802686be908d4f8cd989f0c5002b99 (diff) | |
download | mpiosh-c7351455575348d9d9847604069ee15132f2d8e0.tar.gz mpiosh-c7351455575348d9d9847604069ee15132f2d8e0.tar.bz2 mpiosh-c7351455575348d9d9847604069ee15132f2d8e0.zip |
a special crunchy checkin: no testing;-)
Diffstat (limited to 'mpiosh/config.h')
-rw-r--r-- | mpiosh/config.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/mpiosh/config.h b/mpiosh/config.h new file mode 100644 index 0000000..24ca437 --- /dev/null +++ b/mpiosh/config.h @@ -0,0 +1,48 @@ +/* config.h + * + * Author: Andreas Buesching <crunchy@tzi.de> + * + * $Id: config.h,v 1.1 2002/10/29 20:03:35 crunchy Exp $ + * + * Copyright (C) 2001 Andreas Büsching <crunchy@tzi.de> + * + * 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, 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 MPIOSH_CONFIG_HH +#define MPIOSH_CONFIG_HH + +#include "cfgio.h" + +struct mpiosh_config_t { + CfgHandle *handle_global; + CfgHandle *handle_user; + + char *prompt_int; + char *prompt_ext; + unsigned default_mem; +}; + +struct mpiosh_config_t *mpiosh_config_new(void); +void mpiosh_config_free(struct mpiosh_config_t *config); + +const char *mpiosh_config_read_key(struct mpiosh_config_t *config, + const char *group, const char *key); +int mpiosh_config_read(struct mpiosh_config_t *config); +int mpiosh_config_write(struct mpiosh_config_t *config); + +#endif + +/* end of config.h */ |