|
void | caps_libinif_init (void) |
|
void | caps_libinif_version_get (unsigned *major, unsigned *minor, unsigned *micro) |
|
static void | caps_inif_init_entry (struct data_set *ds) |
|
static void | caps_inif_cleanup_entry (struct data_set *ds) |
|
void | caps_inif_table_init (struct caps_inif_table *dst) |
|
void | caps_inif_table_cleanup (struct caps_inif_table *dst) |
|
static struct data_set * | caps_inif_create_new_data_set (struct caps_inif_table *dst) |
|
static char * | rstrip (char *s) |
|
static char * | lskip (const char *s) |
|
static char * | find_char_or_comment (const char *s, char c) |
|
int | caps_inif_option_add (struct caps_inif_table *dst, const char *level, const char *section, const char *key, const char *val) |
|
static struct data_set * | initf_entry_check (const struct caps_inif_table *dst, const char *level, const char *section, const char *key) |
|
static int | inif_entry_fold (struct caps_inif_table *dst, const char *level, const char *section, const char *key, const char *val) |
|
static int | parse_ini_file (FILE *file, struct caps_inif_table *dst, const char *level, int(*entry)(struct caps_inif_table *dst, const char *level, const char *section, const char *key, const char *val)) |
|
static bool | is_ini_file (const char *file_name) |
|
static void | destroy_list_files_in_dir (struct dirent **e, size_t cnt) |
|
static int | ini_file_filter (const struct dirent *e) |
|
static int | list_ini_files_in_dir (const char *dir, struct dirent ***e, size_t *cnt) |
|
static char * | get_file_name (const char *file_name) |
|
int | caps_inif_file_read (struct caps_inif_table *dst, const char *level, const char *file_name) |
|
int | caps_inif_file_merge (struct caps_inif_table *dst, const char *level, const char *ini_file) |
|
static int | caps_inif_dir_process (struct caps_inif_table *dst, const char *level, const char *dir, int merge) |
|
int | caps_inif_dir_read (struct caps_inif_table *dst, const char *level, const char *dir) |
|
int | caps_inif_dir_merge (struct caps_inif_table *dst, const char *level, const char *dir) |
|
const char * | caps_inif_option_get (const struct caps_inif_table *dst, const char *level, const char *section, const char *key) |
|
void | caps_inif_option_list_print (const struct caps_inif_table *dst) |
|
struct caps_inif_cursor * | caps_inif_cursor_create (void) |
|
void | caps_inif_cursor_destroy (struct caps_inif_cursor *cursor) |
|
const char * | caps_inif_next_key_get (const struct caps_inif_table *dst, struct caps_inif_cursor *cursor) |
|
const char * | caps_inif_next_section_get (const struct caps_inif_table *dst, struct caps_inif_cursor *cursor) |
|
const char * | caps_inif_next_level_get (const struct caps_inif_table *dst, struct caps_inif_cursor *cursor) |
|
static int | dump_ini_table (FILE *file, const struct caps_inif_table *dst) |
|
static void | caps_inif_free_lock_info (struct caps_inif_lock *li) |
|
struct caps_inif_lock * | caps_inif_locked_file_read (struct caps_inif_table *dst, const char *level, const char *file_name) |
|
int | caps_inif_locked_file_write (const struct caps_inif_table *dst, struct caps_inif_lock *li) |
|
void | caps_inif_locked_file_close (struct caps_inif_lock *li) |
|
size_t | caps_inif_option_count_get (const struct caps_inif_table *dst) |
|
- Copyright
- GNU Lesser General Public License 2.1
- Author
- Jürgen Borleis
- Warning
- Use as experimental
To avoid to re-invent the wheel I'm using an INI parser called "inih" from "http://code.google.com/p/inih/" with the following licence:
The "inih" library is distributed under the New BSD license:
Copyright (c) 2009, Brush Technology
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Brush Technology nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY BRUSH TECHNOLOGY ''AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL BRUSH TECHNOLOGY BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.