diff options
author | Philipp Tölke <toelke@in.tum.de> | 2011-03-05 11:17:09 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2011-03-05 11:17:09 +0000 |
commit | e01209d5d6b3873646727662ab8dfee0189d42a6 (patch) | |
tree | ddc781879f336327700ccb0219ba0792dcef97fe /src/util | |
parent | 400de3aa78c110aeca65609af3571b1a65eaf4bf (diff) | |
download | gnunet-e01209d5d6b3873646727662ab8dfee0189d42a6.tar.gz gnunet-e01209d5d6b3873646727662ab8dfee0189d42a6.zip |
read the dns-config from the file
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/configuration.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/util/configuration.c b/src/util/configuration.c index 07d8cb941..10f2d7575 100644 --- a/src/util/configuration.c +++ b/src/util/configuration.c | |||
@@ -402,6 +402,25 @@ GNUNET_CONFIGURATION_iterate (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
402 | 402 | ||
403 | 403 | ||
404 | /** | 404 | /** |
405 | * Iterate over all sections in the configuration. | ||
406 | * | ||
407 | * @param cfg configuration to inspect | ||
408 | * @param iter function to call on each section | ||
409 | * @param iter_cls closure for iter | ||
410 | */ | ||
411 | void | ||
412 | GNUNET_CONFIGURATION_iterate_sections (const struct GNUNET_CONFIGURATION_Handle *cfg, | ||
413 | GNUNET_CONFIGURATION_Section_Iterator iter, | ||
414 | void *iter_cls) | ||
415 | { | ||
416 | struct ConfigSection *spos; | ||
417 | |||
418 | for (spos = cfg->sections; spos != NULL; spos = spos->next) | ||
419 | iter (iter_cls, spos->name); | ||
420 | } | ||
421 | |||
422 | |||
423 | /** | ||
405 | * Copy a configuration value to the given target configuration. | 424 | * Copy a configuration value to the given target configuration. |
406 | * Overwrites existing entries. | 425 | * Overwrites existing entries. |
407 | * | 426 | * |