aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_configuration_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-27 15:04:09 +0000
committerChristian Grothoff <christian@grothoff.org>2015-01-27 15:04:09 +0000
commit92627182d83bb49b07e6f0a78285ca8b3a2fd4d9 (patch)
tree896eac13693a215ebe1446160bb1157f9ea1d2a7 /src/include/gnunet_configuration_lib.h
parentecaf813d69580ee1af4bbcaf501caaccf21441db (diff)
downloadgnunet-92627182d83bb49b07e6f0a78285ca8b3a2fd4d9.tar.gz
gnunet-92627182d83bb49b07e6f0a78285ca8b3a2fd4d9.zip
add GNUNET_CONFIGURATION_get_data from Taler
Diffstat (limited to 'src/include/gnunet_configuration_lib.h')
-rw-r--r--src/include/gnunet_configuration_lib.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h
index ac14dde64..ce5679c81 100644
--- a/src/include/gnunet_configuration_lib.h
+++ b/src/include/gnunet_configuration_lib.h
@@ -431,6 +431,29 @@ GNUNET_CONFIGURATION_get_value_yesno (const struct GNUNET_CONFIGURATION_Handle *
431 431
432 432
433/** 433/**
434 * Get Crockford32-encoded fixed-size binary data from a configuration.
435 *
436 * @param cfg configuration to access
437 * @param section section to access
438 * @param option option to access
439 * @param buf where to store the decoded binary result
440 * @param buf_size exact number of bytes to store in @a buf
441 * @return #GNUNET_OK on success
442 * #GNUNET_NO is the value does not exist
443 * #GNUNET_SYSERR on decoding error
444 */
445int
446GNUNET_CONFIGURATION_get_data (const struct GNUNET_CONFIGURATION_Handle *cfg,
447 const char *section,
448 const char *option,
449 void *buf,
450 size_t buf_size);
451
452
453
454
455
456/**
434 * Expand an expression of the form "$FOO/BAR" to "DIRECTORY/BAR" 457 * Expand an expression of the form "$FOO/BAR" to "DIRECTORY/BAR"
435 * where either in the "PATHS" section or the environtment "FOO" is 458 * where either in the "PATHS" section or the environtment "FOO" is
436 * set to "DIRECTORY". We also support default expansion, 459 * set to "DIRECTORY". We also support default expansion,