aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_configuration_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-14 23:43:53 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-14 23:43:53 +0000
commit0c7015a6d8d2b3bf021c216b24d7062cd7375a71 (patch)
tree18bddea280e5e85d09389e9275c5efd15f17c840 /src/include/gnunet_configuration_lib.h
parentca173048a26a418866163d14c9159b9ad712644b (diff)
downloadgnunet-0c7015a6d8d2b3bf021c216b24d7062cd7375a71.tar.gz
gnunet-0c7015a6d8d2b3bf021c216b24d7062cd7375a71.zip
-playing with doxygen groups
Diffstat (limited to 'src/include/gnunet_configuration_lib.h')
-rw-r--r--src/include/gnunet_configuration_lib.h51
1 files changed, 26 insertions, 25 deletions
diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h
index 0c87a537d..5ef58bf95 100644
--- a/src/include/gnunet_configuration_lib.h
+++ b/src/include/gnunet_configuration_lib.h
@@ -21,10 +21,10 @@
21/** 21/**
22 * @file include/gnunet_configuration_lib.h 22 * @file include/gnunet_configuration_lib.h
23 * @brief configuration API 23 * @brief configuration API
24 *
25 * @author Christian Grothoff 24 * @author Christian Grothoff
25 * @defgroup configuration Configuration management
26 * @{
26 */ 27 */
27
28#ifndef GNUNET_CONFIGURATION_LIB_H 28#ifndef GNUNET_CONFIGURATION_LIB_H
29#define GNUNET_CONFIGURATION_LIB_H 29#define GNUNET_CONFIGURATION_LIB_H
30 30
@@ -79,7 +79,7 @@ GNUNET_CONFIGURATION_destroy (struct GNUNET_CONFIGURATION_Handle *cfg);
79 * 79 *
80 * @param cfg configuration to update 80 * @param cfg configuration to update
81 * @param filename name of the configuration file, NULL to load defaults 81 * @param filename name of the configuration file, NULL to load defaults
82 * @return GNUNET_OK on success, GNUNET_SYSERR on error 82 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
83 */ 83 */
84int 84int
85GNUNET_CONFIGURATION_load (struct GNUNET_CONFIGURATION_Handle *cfg, 85GNUNET_CONFIGURATION_load (struct GNUNET_CONFIGURATION_Handle *cfg,
@@ -92,7 +92,7 @@ GNUNET_CONFIGURATION_load (struct GNUNET_CONFIGURATION_Handle *cfg,
92 * 92 *
93 * @param cfg configuration to update 93 * @param cfg configuration to update
94 * @param defaults_d directory with the defaults 94 * @param defaults_d directory with the defaults
95 * @return GNUNET_OK on success, GNUNET_SYSERR on error 95 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
96 */ 96 */
97int 97int
98GNUNET_CONFIGURATION_load_from (struct GNUNET_CONFIGURATION_Handle *cfg, 98GNUNET_CONFIGURATION_load_from (struct GNUNET_CONFIGURATION_Handle *cfg,
@@ -105,7 +105,7 @@ GNUNET_CONFIGURATION_load_from (struct GNUNET_CONFIGURATION_Handle *cfg,
105 * 105 *
106 * @param cfg configuration to update 106 * @param cfg configuration to update
107 * @param filename name of the configuration file 107 * @param filename name of the configuration file
108 * @return GNUNET_OK on success, GNUNET_SYSERR on error 108 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
109 */ 109 */
110int 110int
111GNUNET_CONFIGURATION_parse (struct GNUNET_CONFIGURATION_Handle *cfg, 111GNUNET_CONFIGURATION_parse (struct GNUNET_CONFIGURATION_Handle *cfg,
@@ -131,10 +131,10 @@ GNUNET_CONFIGURATION_serialize (const struct GNUNET_CONFIGURATION_Handle *cfg,
131 * @param cfg configuration to update 131 * @param cfg configuration to update
132 * @param mem the memory block of serialized configuration 132 * @param mem the memory block of serialized configuration
133 * @param size the size of the memory block 133 * @param size the size of the memory block
134 * @param allow_inline set to GNUNET_YES if we recursively load configuration 134 * @param allow_inline set to #GNUNET_YES if we recursively load configuration
135 * from inlined configurations; GNUNET_NO if not and raise warnings 135 * from inlined configurations; #GNUNET_NO if not and raise warnings
136 * when we come across them 136 * when we come across them
137 * @return GNUNET_OK on success, GNUNET_ERROR on error 137 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
138 */ 138 */
139int 139int
140GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg, 140GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg,
@@ -148,7 +148,7 @@ GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg,
148 * 148 *
149 * @param cfg configuration to write 149 * @param cfg configuration to write
150 * @param filename where to write the configuration 150 * @param filename where to write the configuration
151 * @return GNUNET_OK on success, GNUNET_SYSERR on error 151 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
152 */ 152 */
153int 153int
154GNUNET_CONFIGURATION_write (struct GNUNET_CONFIGURATION_Handle *cfg, 154GNUNET_CONFIGURATION_write (struct GNUNET_CONFIGURATION_Handle *cfg,
@@ -160,7 +160,7 @@ GNUNET_CONFIGURATION_write (struct GNUNET_CONFIGURATION_Handle *cfg,
160 * @param cfgDefault default configuration 160 * @param cfgDefault default configuration
161 * @param cfgNew new configuration 161 * @param cfgNew new configuration
162 * @param filename where to write the configuration diff between default and new 162 * @param filename where to write the configuration diff between default and new
163 * @return GNUNET_OK on success, GNUNET_SYSERR on error 163 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
164 */ 164 */
165int 165int
166GNUNET_CONFIGURATION_write_diffs (const struct GNUNET_CONFIGURATION_Handle 166GNUNET_CONFIGURATION_write_diffs (const struct GNUNET_CONFIGURATION_Handle
@@ -188,7 +188,7 @@ GNUNET_CONFIGURATION_get_diff (const struct GNUNET_CONFIGURATION_Handle
188 * changed since the last save. 188 * changed since the last save.
189 * 189 *
190 * @param cfg configuration to inspect 190 * @param cfg configuration to inspect
191 * @return GNUNET_NO if clean, GNUNET_YES if dirty, GNUNET_SYSERR on error (i.e. last save failed) 191 * @return #GNUNET_NO if clean, #GNUNET_YES if dirty, #GNUNET_SYSERR on error (i.e. last save failed)
192 */ 192 */
193int 193int
194GNUNET_CONFIGURATION_is_dirty (const struct GNUNET_CONFIGURATION_Handle *cfg); 194GNUNET_CONFIGURATION_is_dirty (const struct GNUNET_CONFIGURATION_Handle *cfg);
@@ -261,7 +261,7 @@ GNUNET_CONFIGURATION_remove_section (struct GNUNET_CONFIGURATION_Handle *cfg,
261 * @param section section of interest 261 * @param section section of interest
262 * @param option option of interest 262 * @param option option of interest
263 * @param number where to store the numeric value of the option 263 * @param number where to store the numeric value of the option
264 * @return GNUNET_OK on success, GNUNET_SYSERR on error 264 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
265 */ 265 */
266int 266int
267GNUNET_CONFIGURATION_get_value_number (const struct GNUNET_CONFIGURATION_Handle 267GNUNET_CONFIGURATION_get_value_number (const struct GNUNET_CONFIGURATION_Handle
@@ -277,7 +277,7 @@ GNUNET_CONFIGURATION_get_value_number (const struct GNUNET_CONFIGURATION_Handle
277 * @param section section of interest 277 * @param section section of interest
278 * @param option option of interest 278 * @param option option of interest
279 * @param time set to the time value stored in the configuration 279 * @param time set to the time value stored in the configuration
280 * @return GNUNET_OK on success, GNUNET_SYSERR on error 280 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
281 */ 281 */
282int 282int
283GNUNET_CONFIGURATION_get_value_time (const struct GNUNET_CONFIGURATION_Handle 283GNUNET_CONFIGURATION_get_value_time (const struct GNUNET_CONFIGURATION_Handle
@@ -294,7 +294,7 @@ GNUNET_CONFIGURATION_get_value_time (const struct GNUNET_CONFIGURATION_Handle
294 * @param section section of interest 294 * @param section section of interest
295 * @param option option of interest 295 * @param option option of interest
296 * @param size set to the size in bytes as stored in the configuration 296 * @param size set to the size in bytes as stored in the configuration
297 * @return GNUNET_OK on success, GNUNET_SYSERR on error 297 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
298 */ 298 */
299int 299int
300GNUNET_CONFIGURATION_get_value_size (const struct GNUNET_CONFIGURATION_Handle 300GNUNET_CONFIGURATION_get_value_size (const struct GNUNET_CONFIGURATION_Handle
@@ -309,7 +309,7 @@ GNUNET_CONFIGURATION_get_value_size (const struct GNUNET_CONFIGURATION_Handle
309 * @param cfg configuration to inspect 309 * @param cfg configuration to inspect
310 * @param section section of interest 310 * @param section section of interest
311 * @param option option of interest 311 * @param option option of interest
312 * @return GNUNET_YES if so, GNUNET_NO if not. 312 * @return #GNUNET_YES if so, #GNUNET_NO if not.
313 */ 313 */
314int 314int
315GNUNET_CONFIGURATION_have_value (const struct GNUNET_CONFIGURATION_Handle *cfg, 315GNUNET_CONFIGURATION_have_value (const struct GNUNET_CONFIGURATION_Handle *cfg,
@@ -324,7 +324,7 @@ GNUNET_CONFIGURATION_have_value (const struct GNUNET_CONFIGURATION_Handle *cfg,
324 * @param option option of interest 324 * @param option option of interest
325 * @param value will be set to a freshly allocated configuration 325 * @param value will be set to a freshly allocated configuration
326 * value, or NULL if option is not specified 326 * value, or NULL if option is not specified
327 * @return GNUNET_OK on success, GNUNET_SYSERR on error 327 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
328 */ 328 */
329int 329int
330GNUNET_CONFIGURATION_get_value_string (const struct GNUNET_CONFIGURATION_Handle 330GNUNET_CONFIGURATION_get_value_string (const struct GNUNET_CONFIGURATION_Handle
@@ -341,7 +341,7 @@ GNUNET_CONFIGURATION_get_value_string (const struct GNUNET_CONFIGURATION_Handle
341 * @param option option of interest 341 * @param option option of interest
342 * @param value will be set to a freshly allocated configuration 342 * @param value will be set to a freshly allocated configuration
343 * value, or NULL if option is not specified 343 * value, or NULL if option is not specified
344 * @return GNUNET_OK on success, GNUNET_SYSERR on error 344 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
345 */ 345 */
346int 346int
347GNUNET_CONFIGURATION_get_value_filename (const struct 347GNUNET_CONFIGURATION_get_value_filename (const struct
@@ -356,7 +356,7 @@ GNUNET_CONFIGURATION_get_value_filename (const struct
356 * @param section section of interest 356 * @param section section of interest
357 * @param option option of interest 357 * @param option option of interest
358 * @param cb function to call on each filename 358 * @param cb function to call on each filename
359 * @param cb_cls closure for cb 359 * @param cb_cls closure for @a cb
360 * @return number of filenames iterated over, -1 on error 360 * @return number of filenames iterated over, -1 on error
361 */ 361 */
362int 362int
@@ -373,7 +373,7 @@ GNUNET_CONFIGURATION_iterate_value_filenames (const struct
373 * @param cfg configuration to inspect 373 * @param cfg configuration to inspect
374 * @param section the section 374 * @param section the section
375 * @param iter function to call on each option 375 * @param iter function to call on each option
376 * @param iter_cls closure for iter 376 * @param iter_cls closure for @a iter
377 */ 377 */
378void 378void
379GNUNET_CONFIGURATION_iterate_section_values (const struct 379GNUNET_CONFIGURATION_iterate_section_values (const struct
@@ -392,7 +392,7 @@ GNUNET_CONFIGURATION_iterate_section_values (const struct
392 * @param choices NULL-terminated list of legal values 392 * @param choices NULL-terminated list of legal values
393 * @param value will be set to an entry in the legal list, 393 * @param value will be set to an entry in the legal list,
394 * or NULL if option is not specified and no default given 394 * or NULL if option is not specified and no default given
395 * @return GNUNET_OK on success, GNUNET_SYSERR on error 395 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
396 */ 396 */
397int 397int
398GNUNET_CONFIGURATION_get_value_choice (const struct GNUNET_CONFIGURATION_Handle 398GNUNET_CONFIGURATION_get_value_choice (const struct GNUNET_CONFIGURATION_Handle
@@ -407,7 +407,7 @@ GNUNET_CONFIGURATION_get_value_choice (const struct GNUNET_CONFIGURATION_Handle
407 * @param cfg configuration to inspect 407 * @param cfg configuration to inspect
408 * @param section section of interest 408 * @param section section of interest
409 * @param option option of interest 409 * @param option option of interest
410 * @return GNUNET_YES, GNUNET_NO or if option has no valid value, GNUNET_SYSERR 410 * @return #GNUNET_YES, #GNUNET_NO or if option has no valid value, #GNUNET_SYSERR
411 */ 411 */
412int 412int
413GNUNET_CONFIGURATION_get_value_yesno (const struct GNUNET_CONFIGURATION_Handle 413GNUNET_CONFIGURATION_get_value_yesno (const struct GNUNET_CONFIGURATION_Handle
@@ -465,8 +465,8 @@ GNUNET_CONFIGURATION_set_value_string (struct GNUNET_CONFIGURATION_Handle *cfg,
465 * @param section section of interest 465 * @param section section of interest
466 * @param option option of interest 466 * @param option option of interest
467 * @param value filename to remove 467 * @param value filename to remove
468 * @return GNUNET_OK on success, 468 * @return #GNUNET_OK on success,
469 * GNUNET_SYSERR if the filename is not in the list 469 * #GNUNET_SYSERR if the filename is not in the list
470 */ 470 */
471int 471int
472GNUNET_CONFIGURATION_remove_value_filename (struct GNUNET_CONFIGURATION_Handle 472GNUNET_CONFIGURATION_remove_value_filename (struct GNUNET_CONFIGURATION_Handle
@@ -482,8 +482,8 @@ GNUNET_CONFIGURATION_remove_value_filename (struct GNUNET_CONFIGURATION_Handle
482 * @param section section of interest 482 * @param section section of interest
483 * @param option option of interest 483 * @param option option of interest
484 * @param value filename to append 484 * @param value filename to append
485 * @return GNUNET_OK on success, 485 * @return #GNUNET_OK on success,
486 * GNUNET_SYSERR if the filename already in the list 486 * #GNUNET_SYSERR if the filename already in the list
487 */ 487 */
488int 488int
489GNUNET_CONFIGURATION_append_value_filename (struct GNUNET_CONFIGURATION_Handle 489GNUNET_CONFIGURATION_append_value_filename (struct GNUNET_CONFIGURATION_Handle
@@ -491,6 +491,7 @@ GNUNET_CONFIGURATION_append_value_filename (struct GNUNET_CONFIGURATION_Handle
491 const char *option, 491 const char *option,
492 const char *value); 492 const char *value);
493 493
494/** @} */ /* end of group configuration */
494 495
495#if 0 /* keep Emacsens' auto-indent happy */ 496#if 0 /* keep Emacsens' auto-indent happy */
496{ 497{