00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef CCL_H
00022 #define CCL_H
00023
00024 #if HAVE_CONFIG_H
00025 # include <config.h>
00026 #endif
00027
00028 #include "ccl/bst.h"
00029
00035 struct ccl_pair_t
00036 {
00038 char *key;
00040 char *value;
00041 };
00042
00052 struct ccl_t
00053 {
00055 char comment_char;
00057 char sep_char;
00059 char str_char;
00060
00061
00062
00063
00064
00065 struct bst_table *table;
00066
00067
00068 struct bst_traverser traverser;
00069
00070
00071 int iterating;
00072 };
00073 typedef struct ccl_t ccl_t;
00074
00086 int
00087 ccl_parse(struct ccl_t *data,
00088 const char *path);
00089
00096 void
00097 ccl_release(struct ccl_t *data);
00098
00111 const char*
00112 ccl_get(const struct ccl_t *data,
00113 const char *key);
00114
00126 const struct ccl_pair_t*
00127 ccl_iterate(struct ccl_t *data);
00128
00136 void
00137 ccl_reset(struct ccl_t *data);
00138
00139
00140 #endif
00141
00142