aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_configuration_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_configuration_lib.h')
-rw-r--r--src/include/gnunet_configuration_lib.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h
index 84c20bde0..8e2f8e6d9 100644
--- a/src/include/gnunet_configuration_lib.h
+++ b/src/include/gnunet_configuration_lib.h
@@ -156,6 +156,7 @@ int GNUNET_CONFIGURATION_get_value_number (const struct GNUNET_CONFIGURATION_Han
156 const char *option, 156 const char *option,
157 unsigned long long *number); 157 unsigned long long *number);
158 158
159
159/** 160/**
160 * Get a configuration value that should be a relative time. 161 * Get a configuration value that should be a relative time.
161 * 162 *
@@ -170,6 +171,7 @@ int GNUNET_CONFIGURATION_get_value_time (const struct GNUNET_CONFIGURATION_Handl
170 const char *option, 171 const char *option,
171 struct GNUNET_TIME_Relative *time); 172 struct GNUNET_TIME_Relative *time);
172 173
174
173/** 175/**
174 * Test if we have a value for a particular option 176 * Test if we have a value for a particular option
175 * 177 *
@@ -181,6 +183,7 @@ int GNUNET_CONFIGURATION_get_value_time (const struct GNUNET_CONFIGURATION_Handl
181int GNUNET_CONFIGURATION_have_value (const struct GNUNET_CONFIGURATION_Handle *cfg, 183int GNUNET_CONFIGURATION_have_value (const struct GNUNET_CONFIGURATION_Handle *cfg,
182 const char *section, const char *option); 184 const char *section, const char *option);
183 185
186
184/** 187/**
185 * Get a configuration value that should be a string. 188 * Get a configuration value that should be a string.
186 * 189 *
@@ -195,6 +198,7 @@ int GNUNET_CONFIGURATION_get_value_string (const struct GNUNET_CONFIGURATION_Han
195 *cfg, const char *section, 198 *cfg, const char *section,
196 const char *option, char **value); 199 const char *option, char **value);
197 200
201
198/** 202/**
199 * Get a configuration value that should be the name of a file 203 * Get a configuration value that should be the name of a file
200 * or directory. 204 * or directory.
@@ -267,11 +271,12 @@ int GNUNET_CONFIGURATION_get_value_yesno (const struct GNUNET_CONFIGURATION_Hand
267 * "FOO" is set to "DIRECTORY". 271 * "FOO" is set to "DIRECTORY".
268 * 272 *
269 * @param cfg configuration to use for path expansion 273 * @param cfg configuration to use for path expansion
270 * @param old string to $-expand (will be freed!) 274 * @param orig string to $-expand (will be freed!)
271 * @return $-expanded string 275 * @return $-expanded string
272 */ 276 */
273char *GNUNET_CONFIGURATION_expand_dollar (const struct GNUNET_CONFIGURATION_Handle 277char *GNUNET_CONFIGURATION_expand_dollar (const struct GNUNET_CONFIGURATION_Handle
274 *cfg, char *old); 278 *cfg, char *orig);
279
275 280
276/** 281/**
277 * Set a configuration value that should be a number. 282 * Set a configuration value that should be a number.