aboutsummaryrefslogtreecommitdiff
path: root/src/util/configuration.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/configuration.c')
-rw-r--r--src/util/configuration.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/util/configuration.c b/src/util/configuration.c
index eacbdbf05..769d2aadc 100644
--- a/src/util/configuration.c
+++ b/src/util/configuration.c
@@ -235,7 +235,7 @@ GNUNET_CONFIGURATION_parse (struct GNUNET_CONFIGURATION_Handle *cfg,
235} 235}
236 236
237int 237int
238GNUNET_CONFIGURATION_test_dirty (struct GNUNET_CONFIGURATION_Handle *cfg) 238GNUNET_CONFIGURATION_test_dirty (const struct GNUNET_CONFIGURATION_Handle *cfg)
239{ 239{
240 return cfg->dirty; 240 return cfg->dirty;
241} 241}
@@ -316,7 +316,7 @@ GNUNET_CONFIGURATION_write (struct GNUNET_CONFIGURATION_Handle *data,
316 316
317 317
318static struct ConfigSection * 318static struct ConfigSection *
319findSection (struct GNUNET_CONFIGURATION_Handle *data, const char *section) 319findSection (const struct GNUNET_CONFIGURATION_Handle *data, const char *section)
320{ 320{
321 struct ConfigSection *pos; 321 struct ConfigSection *pos;
322 322
@@ -328,7 +328,7 @@ findSection (struct GNUNET_CONFIGURATION_Handle *data, const char *section)
328 328
329 329
330static struct ConfigEntry * 330static struct ConfigEntry *
331findEntry (struct GNUNET_CONFIGURATION_Handle *data, 331findEntry (const struct GNUNET_CONFIGURATION_Handle *data,
332 const char *section, const char *key) 332 const char *section, const char *key)
333{ 333{
334 struct ConfigSection *sec; 334 struct ConfigSection *sec;
@@ -386,7 +386,7 @@ GNUNET_CONFIGURATION_set_value_number (struct GNUNET_CONFIGURATION_Handle
386} 386}
387 387
388int 388int
389GNUNET_CONFIGURATION_get_value_number (struct GNUNET_CONFIGURATION_Handle 389GNUNET_CONFIGURATION_get_value_number (const struct GNUNET_CONFIGURATION_Handle
390 *cfg, const char *section, 390 *cfg, const char *section,
391 const char *option, 391 const char *option,
392 unsigned long long *number) 392 unsigned long long *number)
@@ -402,7 +402,7 @@ GNUNET_CONFIGURATION_get_value_number (struct GNUNET_CONFIGURATION_Handle
402} 402}
403 403
404int 404int
405GNUNET_CONFIGURATION_get_value_time (struct GNUNET_CONFIGURATION_Handle 405GNUNET_CONFIGURATION_get_value_time (const struct GNUNET_CONFIGURATION_Handle
406 *cfg, const char *section, 406 *cfg, const char *section,
407 const char *option, 407 const char *option,
408 struct GNUNET_TIME_Relative *time) 408 struct GNUNET_TIME_Relative *time)
@@ -420,7 +420,7 @@ GNUNET_CONFIGURATION_get_value_time (struct GNUNET_CONFIGURATION_Handle
420} 420}
421 421
422int 422int
423GNUNET_CONFIGURATION_get_value_string (struct GNUNET_CONFIGURATION_Handle 423GNUNET_CONFIGURATION_get_value_string (const struct GNUNET_CONFIGURATION_Handle
424 *cfg, const char *section, 424 *cfg, const char *section,
425 const char *option, char **value) 425 const char *option, char **value)
426{ 426{
@@ -437,7 +437,7 @@ GNUNET_CONFIGURATION_get_value_string (struct GNUNET_CONFIGURATION_Handle
437} 437}
438 438
439int 439int
440GNUNET_CONFIGURATION_get_value_choice (struct GNUNET_CONFIGURATION_Handle 440GNUNET_CONFIGURATION_get_value_choice (const struct GNUNET_CONFIGURATION_Handle
441 *cfg, const char *section, 441 *cfg, const char *section,
442 const char *option, 442 const char *option,
443 const char **choices, 443 const char **choices,
@@ -473,7 +473,7 @@ GNUNET_CONFIGURATION_get_value_choice (struct GNUNET_CONFIGURATION_Handle
473 * @return GNUNET_YES if so, GNUNET_NO if not. 473 * @return GNUNET_YES if so, GNUNET_NO if not.
474 */ 474 */
475int 475int
476GNUNET_CONFIGURATION_have_value (struct GNUNET_CONFIGURATION_Handle *cfg, 476GNUNET_CONFIGURATION_have_value (const struct GNUNET_CONFIGURATION_Handle *cfg,
477 const char *section, const char *option) 477 const char *section, const char *option)
478{ 478{
479 struct ConfigEntry *e; 479 struct ConfigEntry *e;
@@ -491,7 +491,7 @@ GNUNET_CONFIGURATION_have_value (struct GNUNET_CONFIGURATION_Handle *cfg,
491 * @return $-expanded string 491 * @return $-expanded string
492 */ 492 */
493char * 493char *
494GNUNET_CONFIGURATION_expand_dollar (struct GNUNET_CONFIGURATION_Handle *cfg, 494GNUNET_CONFIGURATION_expand_dollar (const struct GNUNET_CONFIGURATION_Handle *cfg,
495 char *orig) 495 char *orig)
496{ 496{
497 int i; 497 int i;
@@ -543,7 +543,7 @@ GNUNET_CONFIGURATION_expand_dollar (struct GNUNET_CONFIGURATION_Handle *cfg,
543 * @return GNUNET_OK on success, GNUNET_SYSERR on error 543 * @return GNUNET_OK on success, GNUNET_SYSERR on error
544 */ 544 */
545int 545int
546GNUNET_CONFIGURATION_get_value_filename (struct GNUNET_CONFIGURATION_Handle 546GNUNET_CONFIGURATION_get_value_filename (const struct GNUNET_CONFIGURATION_Handle
547 *data, const char *section, 547 *data, const char *section,
548 const char *option, char **value) 548 const char *option, char **value)
549{ 549{
@@ -574,7 +574,7 @@ GNUNET_CONFIGURATION_get_value_filename (struct GNUNET_CONFIGURATION_Handle
574 * @return GNUNET_YES, GNUNET_NO or GNUNET_SYSERR 574 * @return GNUNET_YES, GNUNET_NO or GNUNET_SYSERR
575 */ 575 */
576int 576int
577GNUNET_CONFIGURATION_get_value_yesno (struct GNUNET_CONFIGURATION_Handle *cfg, 577GNUNET_CONFIGURATION_get_value_yesno (const struct GNUNET_CONFIGURATION_Handle *cfg,
578 const char *section, const char *option) 578 const char *section, const char *option)
579{ 579{
580 static const char *yesno[] = { "YES", "NO", NULL }; 580 static const char *yesno[] = { "YES", "NO", NULL };
@@ -597,7 +597,7 @@ GNUNET_CONFIGURATION_get_value_yesno (struct GNUNET_CONFIGURATION_Handle *cfg,
597 * @return number of filenames iterated over, -1 on error 597 * @return number of filenames iterated over, -1 on error
598 */ 598 */
599int 599int
600GNUNET_CONFIGURATION_iterate_value_filenames (struct 600GNUNET_CONFIGURATION_iterate_value_filenames (const struct
601 GNUNET_CONFIGURATION_Handle 601 GNUNET_CONFIGURATION_Handle
602 *cfg, const char *section, 602 *cfg, const char *section,
603 const char *option, 603 const char *option,