diff options
Diffstat (limited to 'src/include/gnunet_disk_lib.h')
-rw-r--r-- | src/include/gnunet_disk_lib.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h index 7dfd9ccf1..2aec55851 100644 --- a/src/include/gnunet_disk_lib.h +++ b/src/include/gnunet_disk_lib.h | |||
@@ -18,6 +18,10 @@ | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @addtogroup libgnunetutil | ||
22 | * Multi-function utilities library for GNUnet programs | ||
23 | * @{ | ||
24 | * | ||
21 | * @author Christian Grothoff | 25 | * @author Christian Grothoff |
22 | * | 26 | * |
23 | * @file | 27 | * @file |
@@ -27,6 +31,11 @@ | |||
27 | * Disk IO APIs | 31 | * Disk IO APIs |
28 | * @{ | 32 | * @{ |
29 | */ | 33 | */ |
34 | |||
35 | #if ! defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
36 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
37 | #endif | ||
38 | |||
30 | #ifndef GNUNET_DISK_LIB_H | 39 | #ifndef GNUNET_DISK_LIB_H |
31 | #define GNUNET_DISK_LIB_H | 40 | #define GNUNET_DISK_LIB_H |
32 | 41 | ||
@@ -72,6 +81,7 @@ struct GNUNET_DISK_FileHandle | |||
72 | or unsigned long long, this IS platform dependent; | 81 | or unsigned long long, this IS platform dependent; |
73 | but "stdlib.h" should be portable 'enough' to be | 82 | but "stdlib.h" should be portable 'enough' to be |
74 | unconditionally available... */ | 83 | unconditionally available... */ |
84 | |||
75 | #include <stdlib.h> | 85 | #include <stdlib.h> |
76 | #include "gnunet_configuration_lib.h" | 86 | #include "gnunet_configuration_lib.h" |
77 | #include "gnunet_scheduler_lib.h" | 87 | #include "gnunet_scheduler_lib.h" |
@@ -670,7 +680,7 @@ GNUNET_DISK_directory_scan (const char *dir_name, | |||
670 | * Currently, the glob_pattern only supports asterisks in the last | 680 | * Currently, the glob_pattern only supports asterisks in the last |
671 | * path component. | 681 | * path component. |
672 | * | 682 | * |
673 | * @param glob_patterb the glob pattern to search for | 683 | * @param glob_pattern the glob pattern to search for |
674 | * @param callback the method to call for each file | 684 | * @param callback the method to call for each file |
675 | * @param callback_cls closure for @a callback | 685 | * @param callback_cls closure for @a callback |
676 | * @return the number of files found, -1 on error | 686 | * @return the number of files found, -1 on error |
@@ -815,4 +825,6 @@ GNUNET_DISK_file_sync (const struct GNUNET_DISK_FileHandle *h); | |||
815 | 825 | ||
816 | /** @} */ /* end of group */ | 826 | /** @} */ /* end of group */ |
817 | 827 | ||
828 | /** @} */ /* end of group addition */ | ||
829 | |||
818 | /* end of gnunet_disk_lib.h */ | 830 | /* end of gnunet_disk_lib.h */ |