summaryrefslogtreecommitdiffstats
path: root/common/ini/ini_parse.h
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2010-04-15 17:27:04 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-04-26 09:54:59 -0400
commit5a5eb2619fed6b37178d3b2c58970788c55cb529 (patch)
tree4328cef0d08e87d08a37e692cd860bee34c4352e /common/ini/ini_parse.h
parentd1de8d73252e973018cb985e6aedffd76cddbbe4 (diff)
downloadsssd-5a5eb2619fed6b37178d3b2c58970788c55cb529.tar.gz
sssd-5a5eb2619fed6b37178d3b2c58970788c55cb529.tar.xz
sssd-5a5eb2619fed6b37178d3b2c58970788c55cb529.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 'common/ini/ini_parse.h')
-rw-r--r--common/ini/ini_parse.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/common/ini/ini_parse.h b/common/ini/ini_parse.h
new file mode 100644
index 0000000..56a0db9
--- /dev/null
+++ b/common/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