diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-07-18 08:18:37 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-07-18 08:18:37 +0000 |
commit | b245a60021ef93b0157f6445aa152e808763a145 (patch) | |
tree | 05ca29430c16b377ff2025ed96c15a8a96703180 /src/include | |
parent | 44c3d88a33a82e66144ba0bbe491febd0e244703 (diff) | |
download | gnunet-b245a60021ef93b0157f6445aa152e808763a145.tar.gz gnunet-b245a60021ef93b0157f6445aa152e808763a145.zip |
aaded new function to iterate over section entries
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_configuration_lib.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h index 3cdd54c8f..642bbde53 100644 --- a/src/include/gnunet_configuration_lib.h +++ b/src/include/gnunet_configuration_lib.h | |||
@@ -277,6 +277,20 @@ int GNUNET_CONFIGURATION_iterate_value_filenames (const struct | |||
277 | cb, void *cb_cls); | 277 | cb, void *cb_cls); |
278 | 278 | ||
279 | /** | 279 | /** |
280 | * Iterate over values of a section in the configuration. | ||
281 | * | ||
282 | * @param cfg configuration to inspect | ||
283 | * @param section the section | ||
284 | * @param iter function to call on each option | ||
285 | * @param iter_cls closure for iter | ||
286 | */ | ||
287 | void | ||
288 | GNUNET_CONFIGURATION_iterate_section_values (const struct GNUNET_CONFIGURATION_Handle *cfg, | ||
289 | const char *section, | ||
290 | GNUNET_CONFIGURATION_Iterator iter, | ||
291 | void *iter_cls); | ||
292 | |||
293 | /** | ||
280 | * Get a configuration value that should be in a set of | 294 | * Get a configuration value that should be in a set of |
281 | * predefined strings | 295 | * predefined strings |
282 | * | 296 | * |