diff options
| author | Dmitri Pal <dpal@redhat.com> | 2010-04-15 17:27:04 -0400 |
|---|---|---|
| committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-04-26 09:54:59 -0400 |
| commit | e06ef2acf0df9ffa854b0359750bb4800a702bf2 (patch) | |
| tree | 85823b8c0fb7686a5502e9dbb6b2a6d1ee64a973 /ini/ini_parse.h | |
| parent | e26fa48aa42eebd2acc22a3731b17a53911dcd4b (diff) | |
| download | ding-libs2-e06ef2acf0df9ffa854b0359750bb4800a702bf2.tar.gz ding-libs2-e06ef2acf0df9ffa854b0359750bb4800a702bf2.tar.xz ding-libs2-e06ef2acf0df9ffa854b0359750bb4800a702bf2.zip | |
Code restructuring
Time came to split ini_config.c
into many much smaller pieces.
1) ini_parse.c - will have parsing functions
2) ini_get_value.c - will have single value
interpretation functions
3) ini_get_array.c - will have array interpretation
functions.
4) ini_print.c - error printing
5) ini_defines.h - common constants
6) ini_parse.h header for parsing functions
7) ini_list.c - will have list processing functions
Diffstat (limited to 'ini/ini_parse.h')
| -rw-r--r-- | ini/ini_parse.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ini/ini_parse.h b/ini/ini_parse.h new file mode 100644 index 0000000..56a0db9 --- /dev/null +++ b/ini/ini_parse.h @@ -0,0 +1,36 @@ +/* + INI LIBRARY + + Header file for the internal parsing functions. + + Copyright (C) Dmitri Pal <dpal@redhat.com> 2010 + + INI Library is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + INI Library 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 Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with INI Library. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef INI_PARSE_H +#define INI_PARSE_H + +#include <stdio.h> + +/* Internal function to read line from INI file */ +int read_line(FILE *file, + char *buf, + int read_size, + char **key, + char **value, + int *length, + int *ext_error); + +#endif |
