diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-05-09 13:08:34 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-05-09 13:08:34 +0200 |
commit | 454110e1b17214b220317704f092bd3587b88a9d (patch) | |
tree | 493652e227af43167749192692f6725bbc6392e5 /mpiosh/cfg.h | |
parent | f442b22fd6182b7d6707f90a558cd358f269dd1d (diff) | |
download | mpiosh-454110e1b17214b220317704f092bd3587b88a9d.tar.gz mpiosh-454110e1b17214b220317704f092bd3587b88a9d.tar.bz2 mpiosh-454110e1b17214b220317704f092bd3587b88a9d.zip |
Switch to cmake
"Works for now..."
Diffstat (limited to 'mpiosh/cfg.h')
-rw-r--r-- | mpiosh/cfg.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/mpiosh/cfg.h b/mpiosh/cfg.h new file mode 100644 index 0000000..4157bd6 --- /dev/null +++ b/mpiosh/cfg.h @@ -0,0 +1,56 @@ +/* config.h + * + * Author: Andreas Buesching <crunchy@tzi.de> + * + * $Id: config.h,v 1.5 2003/06/27 13:40:23 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; + char *charset; + unsigned default_mem; + + unsigned id3_rewriting; + char *id3_format; +}; + +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); + +char * mpiosh_config_check_backup_dir( struct mpiosh_config_t *config, + int create ); + +#endif + +/* end of config.h */ + |