Mercurial > code
view inifile.h @ 75:37fa222d7cc6
Use ';' as comment with #
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 14 Nov 2011 15:00:11 +0100 |
parents | 653d583376c9 |
children |
line wrap: on
line source
/* * inifile.h -- parse .ini like files * * Copyright (c) 2011, David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef _INIFILE_H_ #define _INIFILE_H_ #define INIFILE_VERBOSE (1 << 0) #define INIFILE_NOREDEFINE (1 << 1) struct inifile; struct inifile *inifile_load(const char *, int); char **inifile_sections(struct inifile *, int *); int inifile_select(struct inifile *, const char *); char *inifile_option(struct inifile *, const char *); char *inifile_option_once(struct inifile *, const char *, const char *); char *inifile_error(void); void inifile_free(struct inifile *, int, int); #endif /* _INIFILE_H_ */