aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/taler_util.h')
-rw-r--r--src/include/taler_util.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h
index 2c5faaa52..ab5ee11df 100644
--- a/src/include/taler_util.h
+++ b/src/include/taler_util.h
@@ -73,14 +73,27 @@ void
73TALER_gcrypt_init (void); 73TALER_gcrypt_init (void);
74 74
75 75
76/**
77 * Load configuration by parsing all configuration
78 * files in the given directory.
79 *
80 * @param base_dir directory with the configuration files
81 * @return NULL on error, otherwise configuration
82 */
83struct GNUNET_CONFIGURATION_Handle *
84TALER_config_load (const char *base_dir);
85
86
87
76/* *********************** Amount management ****************** */ 88/* *********************** Amount management ****************** */
77 89
78 90
79/** 91/**
80 * Number of characters (plus 1 for 0-termination) we use to 92 * Number of characters (plus 1 for 0-termination) we use to
81 * represent currency names (i.e. EUR, USD, etc.). 93 * represent currency names (i.e. EUR, USD, etc.). We use
94 * 8 for alignment (!).
82 */ 95 */
83#define TALER_CURRENCY_LEN 4 96#define TALER_CURRENCY_LEN 8
84 97
85 98
86GNUNET_NETWORK_STRUCT_BEGIN 99GNUNET_NETWORK_STRUCT_BEGIN
@@ -127,7 +140,7 @@ struct TALER_Amount
127 /** 140 /**
128 * Currency string, left adjusted and padded with zeros. 141 * Currency string, left adjusted and padded with zeros.
129 */ 142 */
130 char currency[4]; 143 char currency[TALER_CURRENCY_LEN];
131}; 144};
132 145
133 146