diff options
Diffstat (limited to 'src/include/gnunet_configuration_lib.h')
-rw-r--r-- | src/include/gnunet_configuration_lib.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h index 7167d8bd6..f8f302a18 100644 --- a/src/include/gnunet_configuration_lib.h +++ b/src/include/gnunet_configuration_lib.h | |||
@@ -226,6 +226,23 @@ GNUNET_CONFIGURATION_get_value_time (const struct GNUNET_CONFIGURATION_Handle | |||
226 | struct GNUNET_TIME_Relative *time); | 226 | struct GNUNET_TIME_Relative *time); |
227 | 227 | ||
228 | 228 | ||
229 | |||
230 | /** | ||
231 | * Get a configuration value that should be a size in bytes. | ||
232 | * | ||
233 | * @param cfg configuration to inspect | ||
234 | * @param section section of interest | ||
235 | * @param option option of interest | ||
236 | * @param size set to the size in bytes as stored in the configuration | ||
237 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | ||
238 | */ | ||
239 | int | ||
240 | GNUNET_CONFIGURATION_get_value_size (const struct GNUNET_CONFIGURATION_Handle | ||
241 | *cfg, const char *section, | ||
242 | const char *option, | ||
243 | unsigned long long *size); | ||
244 | |||
245 | |||
229 | /** | 246 | /** |
230 | * Test if we have a value for a particular option | 247 | * Test if we have a value for a particular option |
231 | * | 248 | * |
@@ -337,6 +354,7 @@ GNUNET_CONFIGURATION_get_value_yesno (const struct GNUNET_CONFIGURATION_Handle | |||
337 | *cfg, const char *section, | 354 | *cfg, const char *section, |
338 | const char *option); | 355 | const char *option); |
339 | 356 | ||
357 | |||
340 | /** | 358 | /** |
341 | * Expand an expression of the form "$FOO/BAR" to "DIRECTORY/BAR" | 359 | * Expand an expression of the form "$FOO/BAR" to "DIRECTORY/BAR" |
342 | * where either in the "PATHS" section or the environtment | 360 | * where either in the "PATHS" section or the environtment |
@@ -378,6 +396,7 @@ GNUNET_CONFIGURATION_set_value_string (struct GNUNET_CONFIGURATION_Handle *cfg, | |||
378 | const char *section, const char *option, | 396 | const char *section, const char *option, |
379 | const char *value); | 397 | const char *value); |
380 | 398 | ||
399 | |||
381 | /** | 400 | /** |
382 | * Remove a filename from a configuration value that | 401 | * Remove a filename from a configuration value that |
383 | * represents a list of filenames | 402 | * represents a list of filenames |