aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-09 10:05:42 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-09 10:05:42 +0000
commit2032baa561c7fefbe2605f5d6b979a295a61637d (patch)
tree2c2a2f1c92940a51ccb565c8fdc1b381a68d8bb4 /src/include
parent0f6f7fdb0ee4172951f8cb1431d2e457a4b83716 (diff)
downloadgnunet-2032baa561c7fefbe2605f5d6b979a295a61637d.tar.gz
gnunet-2032baa561c7fefbe2605f5d6b979a295a61637d.zip
migrating towards XDG configuration specification (#3000)
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_configuration_lib.h9
-rw-r--r--src/include/gnunet_crypto_lib.h2
-rw-r--r--src/include/gnunet_disk_lib.h19
3 files changed, 8 insertions, 22 deletions
diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h
index 08cf1558a..6d0c04dbb 100644
--- a/src/include/gnunet_configuration_lib.h
+++ b/src/include/gnunet_configuration_lib.h
@@ -415,8 +415,13 @@ GNUNET_CONFIGURATION_get_value_yesno (const struct GNUNET_CONFIGURATION_Handle
415 415
416/** 416/**
417 * Expand an expression of the form "$FOO/BAR" to "DIRECTORY/BAR" 417 * Expand an expression of the form "$FOO/BAR" to "DIRECTORY/BAR"
418 * where either in the "PATHS" section or the environtment 418 * where either in the "PATHS" section or the environtment "FOO" is
419 * "FOO" is set to "DIRECTORY". 419 * set to "DIRECTORY". We also support default expansion,
420 * i.e. ${VARIABLE:-default} will expand to $VARIABLE if VARIABLE is
421 * set in PATHS or the environment, and otherwise to "default". Note
422 * that "default" itself can also be a $-expression, thus
423 * "${VAR1:-{$VAR2}}" will expand to VAR1 and if that is not defined
424 * to VAR2.
420 * 425 *
421 * @param cfg configuration to use for path expansion 426 * @param cfg configuration to use for path expansion
422 * @param orig string to $-expand (will be freed!) 427 * @param orig string to $-expand (will be freed!)
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index c9cae17a2..bd1a2f3bf 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -963,7 +963,7 @@ GNUNET_CRYPTO_ecc_key_get_anonymous (void);
963 * configuration file (!). This function is used so that 963 * configuration file (!). This function is used so that
964 * at a later point code can be certain that reading a 964 * at a later point code can be certain that reading a
965 * hostkey is fast (for example in time-dependent testcases). 965 * hostkey is fast (for example in time-dependent testcases).
966 * 966*
967 * @param cfg_name name of the configuration file to use 967 * @param cfg_name name of the configuration file to use
968 */ 968 */
969void 969void
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h
index bf49b71f8..f6aa3d070 100644
--- a/src/include/gnunet_disk_lib.h
+++ b/src/include/gnunet_disk_lib.h
@@ -798,25 +798,6 @@ GNUNET_DISK_file_change_owner (const char *filename, const char *user);
798 798
799 799
800/** 800/**
801 * Construct full path to a file inside of the private
802 * directory used by GNUnet. Also creates the corresponding
803 * directory. If the resulting name is supposed to be
804 * a directory, end the last argument in '/' (or pass
805 * DIR_SEPARATOR_STR as the last argument before NULL).
806 *
807 * @param cfg configuration to use
808 * @param service_name name of the service asking
809 * @param ... is NULL-terminated list of
810 * path components to append to the
811 * private directory name.
812 * @return the constructed filename
813 */
814char *
815GNUNET_DISK_get_home_filename (const struct GNUNET_CONFIGURATION_Handle *cfg,
816 const char *service_name, ...);
817
818
819/**
820 * Opaque handle for a memory-mapping operation. 801 * Opaque handle for a memory-mapping operation.
821 */ 802 */
822struct GNUNET_DISK_MapHandle; 803struct GNUNET_DISK_MapHandle;