aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_util.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-03-24 18:27:24 +0100
committerChristian Grothoff <christian@grothoff.org>2015-03-24 18:27:24 +0100
commita3ac2587cfee3c8b6e058d4086eea8f5f297e5af (patch)
tree61e4e8881d2c7d0952a44f75f08582b852789169 /src/include/taler_util.h
parentec05a64e3e6346ea91b79244a0a69b06afd22562 (diff)
parent324bf3f980542cb9f209ee7edc6f142c5c34e5a2 (diff)
Merge branch 'master' of git.taler.net:/var/git/mint
Diffstat (limited to 'src/include/taler_util.h')
-rw-r--r--src/include/taler_util.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h
index 74feb037..e4658398 100644
--- a/src/include/taler_util.h
+++ b/src/include/taler_util.h
@@ -84,5 +84,31 @@ struct GNUNET_CONFIGURATION_Handle *
TALER_config_load (const char *base_dir);
+/**
+ * Obtain denomination amount from configuration file.
+ *
+ * @param section section of the configuration to access
+ * @param option option of the configuration to access
+ * @param denom[OUT] set to the amount found in configuration
+ * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
+ */
+int
+TALER_config_get_denom (struct GNUNET_CONFIGURATION_Handle *cfg,
+ const char *section,
+ const char *option,
+ struct TALER_Amount *denom);
+
+
+/**
+ * Get the path to a specific Taler installation directory or, with
+ * #GNUNET_OS_IPK_SELF_PREFIX, the current running apps installation
+ * directory.
+ *
+ * @param dirkind what kind of directory is desired?
+ * @return a pointer to the dir path (to be freed by the caller)
+ */
+char *
+TALER_OS_installation_get_path (enum GNUNET_OS_InstallationPathKind dirkind);
+
#endif