aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_configuration_lib.h
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-03-05 11:17:09 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-03-05 11:17:09 +0000
commite01209d5d6b3873646727662ab8dfee0189d42a6 (patch)
treeddc781879f336327700ccb0219ba0792dcef97fe /src/include/gnunet_configuration_lib.h
parent400de3aa78c110aeca65609af3571b1a65eaf4bf (diff)
downloadgnunet-e01209d5d6b3873646727662ab8dfee0189d42a6.tar.gz
gnunet-e01209d5d6b3873646727662ab8dfee0189d42a6.zip
read the dns-config from the file
Diffstat (limited to 'src/include/gnunet_configuration_lib.h')
-rw-r--r--src/include/gnunet_configuration_lib.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h
index d921cb9ce..87aa8eacc 100644
--- a/src/include/gnunet_configuration_lib.h
+++ b/src/include/gnunet_configuration_lib.h
@@ -142,6 +142,16 @@ typedef void (*GNUNET_CONFIGURATION_Iterator)(void *cls,
142 142
143 143
144/** 144/**
145 * Function to iterate over section.
146 *
147 * @param cls closure
148 * @param section name of the section
149 */
150typedef void (*GNUNET_CONFIGURATION_Section_Iterator)(void *cls,
151 const char *section);
152
153
154/**
145 * Iterate over all options in the configuration. 155 * Iterate over all options in the configuration.
146 * 156 *
147 * @param cfg configuration to inspect 157 * @param cfg configuration to inspect
@@ -154,6 +164,17 @@ void GNUNET_CONFIGURATION_iterate (const struct GNUNET_CONFIGURATION_Handle *cfg
154 164
155 165
156/** 166/**
167 * Iterate over all sections in the configuration.
168 *
169 * @param cfg configuration to inspect
170 * @param iter function to call on each section
171 * @param iter_cls closure for iter
172 */
173void GNUNET_CONFIGURATION_iterate_sections (const struct GNUNET_CONFIGURATION_Handle *cfg,
174 GNUNET_CONFIGURATION_Section_Iterator iter,
175 void *iter_cls);
176
177/**
157 * Get a configuration value that should be a number. 178 * Get a configuration value that should be a number.
158 * 179 *
159 * @param cfg configuration to inspect 180 * @param cfg configuration to inspect