diff options
Diffstat (limited to 'src/include')
28 files changed, 116 insertions, 19 deletions
diff --git a/src/include/gnunet_bandwidth_lib.h b/src/include/gnunet_bandwidth_lib.h index 1df4cde56..359bf95c4 100644 --- a/src/include/gnunet_bandwidth_lib.h +++ b/src/include/gnunet_bandwidth_lib.h | |||
@@ -33,6 +33,10 @@ | |||
33 | * @{ | 33 | * @{ |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
37 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
38 | #endif | ||
39 | |||
36 | #ifndef GNUNET_BANDWIDTH_LIB_H | 40 | #ifndef GNUNET_BANDWIDTH_LIB_H |
37 | #define GNUNET_BANDWIDTH_LIB_H | 41 | #define GNUNET_BANDWIDTH_LIB_H |
38 | 42 | ||
diff --git a/src/include/gnunet_bio_lib.h b/src/include/gnunet_bio_lib.h index f1a68022a..e165b9d90 100644 --- a/src/include/gnunet_bio_lib.h +++ b/src/include/gnunet_bio_lib.h | |||
@@ -33,6 +33,10 @@ | |||
33 | * @{ | 33 | * @{ |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
37 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
38 | #endif | ||
39 | |||
36 | #ifndef GNUNET_BIO_LIB_H | 40 | #ifndef GNUNET_BIO_LIB_H |
37 | #define GNUNET_BIO_LIB_H | 41 | #define GNUNET_BIO_LIB_H |
38 | 42 | ||
diff --git a/src/include/gnunet_buffer_lib.h b/src/include/gnunet_buffer_lib.h index 174d2d010..e65981206 100644 --- a/src/include/gnunet_buffer_lib.h +++ b/src/include/gnunet_buffer_lib.h | |||
@@ -28,6 +28,10 @@ | |||
28 | * @author Florian Dold | 28 | * @author Florian Dold |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
32 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
33 | #endif | ||
34 | |||
31 | #ifndef GNUNET_BUFFER_LIB_H | 35 | #ifndef GNUNET_BUFFER_LIB_H |
32 | #define GNUNET_BUFFER_LIB_H | 36 | #define GNUNET_BUFFER_LIB_H |
33 | 37 | ||
diff --git a/src/include/gnunet_child_management_lib.h b/src/include/gnunet_child_management_lib.h index e7f1271ee..d8f63b60d 100644 --- a/src/include/gnunet_child_management_lib.h +++ b/src/include/gnunet_child_management_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 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
22 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
23 | #endif | ||
24 | |||
21 | /** | 25 | /** |
22 | * @addtogroup libgnunetutil | 26 | * @addtogroup libgnunetutil |
23 | * Multi-function utilities library for GNUnet programs | 27 | * Multi-function utilities library for GNUnet programs |
diff --git a/src/include/gnunet_client_lib.h b/src/include/gnunet_client_lib.h index 0fca362cd..ab4c7d088 100644 --- a/src/include/gnunet_client_lib.h +++ b/src/include/gnunet_client_lib.h | |||
@@ -39,6 +39,10 @@ | |||
39 | * @{ | 39 | * @{ |
40 | */ | 40 | */ |
41 | 41 | ||
42 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
43 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
44 | #endif | ||
45 | |||
42 | #ifndef GNUNET_CLIENT_LIB_H | 46 | #ifndef GNUNET_CLIENT_LIB_H |
43 | #define GNUNET_CLIENT_LIB_H | 47 | #define GNUNET_CLIENT_LIB_H |
44 | 48 | ||
diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h index f6fd8e641..55774a209 100644 --- a/src/include/gnunet_container_lib.h +++ b/src/include/gnunet_container_lib.h | |||
@@ -28,11 +28,11 @@ | |||
28 | * | 28 | * |
29 | * @file | 29 | * @file |
30 | * Container classes for GNUnet | 30 | * Container classes for GNUnet |
31 | * | 31 | * |
32 | * @addtogroup container | 32 | * @addtogroup container |
33 | * Common data structures in GNUnet programs | 33 | * Common data structures in GNUnet programs |
34 | * @{ | 34 | * @{ |
35 | * | 35 | * |
36 | * @defgroup hashmap MultiHashMap | 36 | * @defgroup hashmap MultiHashMap |
37 | * Hash map with multiple values per key. | 37 | * Hash map with multiple values per key. |
38 | * | 38 | * |
@@ -50,10 +50,14 @@ | |||
50 | * | 50 | * |
51 | * @defgroup metadata Metadata | 51 | * @defgroup metadata Metadata |
52 | * GNU libextractor key-value pairs | 52 | * GNU libextractor key-value pairs |
53 | * | 53 | * |
54 | * @} | 54 | * @} |
55 | */ | 55 | */ |
56 | 56 | ||
57 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
58 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
59 | #endif | ||
60 | |||
57 | #ifndef GNUNET_CONTAINER_LIB_H | 61 | #ifndef GNUNET_CONTAINER_LIB_H |
58 | #define GNUNET_CONTAINER_LIB_H | 62 | #define GNUNET_CONTAINER_LIB_H |
59 | 63 | ||
@@ -1265,10 +1269,10 @@ GNUNET_CONTAINER_multipeermap_iterator_create ( | |||
1265 | * position. If there are no elements left, #GNUNET_NO is returned, | 1269 | * position. If there are no elements left, #GNUNET_NO is returned, |
1266 | * and @a key and @a value are not modified. | 1270 | * and @a key and @a value are not modified. |
1267 | * | 1271 | * |
1268 | * This operation is only allowed if no elements have been removed | 1272 | * This operation is only allowed if no elements have been removed |
1269 | * from the multihashmap since the creation of @a iter, and the map | 1273 | * from the multihashmap since the creation of @a iter, and the map |
1270 | * has not been destroyed. | 1274 | * has not been destroyed. |
1271 | * | 1275 | * |
1272 | * Adding elements may result in repeating or skipping elements. | 1276 | * Adding elements may result in repeating or skipping elements. |
1273 | * | 1277 | * |
1274 | * @param iter the iterator to get the next element from | 1278 | * @param iter the iterator to get the next element from |
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 9ee23cf62..3fac945a5 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -44,6 +44,10 @@ | |||
44 | * @see [Documentation](https://gnunet.org/crypto-api) | 44 | * @see [Documentation](https://gnunet.org/crypto-api) |
45 | */ | 45 | */ |
46 | 46 | ||
47 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
48 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
49 | #endif | ||
50 | |||
47 | #ifndef GNUNET_CRYPTO_LIB_H | 51 | #ifndef GNUNET_CRYPTO_LIB_H |
48 | #define GNUNET_CRYPTO_LIB_H | 52 | #define GNUNET_CRYPTO_LIB_H |
49 | 53 | ||
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h index d982dfe72..b14c5e59d 100644 --- a/src/include/gnunet_disk_lib.h +++ b/src/include/gnunet_disk_lib.h | |||
@@ -31,6 +31,11 @@ | |||
31 | * Disk IO APIs | 31 | * Disk IO APIs |
32 | * @{ | 32 | * @{ |
33 | */ | 33 | */ |
34 | |||
35 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
36 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
37 | #endif | ||
38 | |||
34 | #ifndef GNUNET_DISK_LIB_H | 39 | #ifndef GNUNET_DISK_LIB_H |
35 | #define GNUNET_DISK_LIB_H | 40 | #define GNUNET_DISK_LIB_H |
36 | 41 | ||
diff --git a/src/include/gnunet_dnsparser_lib.h b/src/include/gnunet_dnsparser_lib.h index 06fa7a5a7..8064b554b 100644 --- a/src/include/gnunet_dnsparser_lib.h +++ b/src/include/gnunet_dnsparser_lib.h | |||
@@ -18,6 +18,11 @@ | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
22 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
23 | #endif | ||
24 | |||
25 | |||
21 | /** | 26 | /** |
22 | * @addtogroup libgnunetutil | 27 | * @addtogroup libgnunetutil |
23 | * @{ | 28 | * @{ |
@@ -35,9 +40,6 @@ | |||
35 | #ifndef GNUNET_DNSPARSER_LIB_H | 40 | #ifndef GNUNET_DNSPARSER_LIB_H |
36 | #define GNUNET_DNSPARSER_LIB_H | 41 | #define GNUNET_DNSPARSER_LIB_H |
37 | 42 | ||
38 | |||
39 | #include "gnunet_util_lib.h" | ||
40 | |||
41 | /** | 43 | /** |
42 | * Maximum length of a label in DNS. | 44 | * Maximum length of a label in DNS. |
43 | */ | 45 | */ |
diff --git a/src/include/gnunet_dnsstub_lib.h b/src/include/gnunet_dnsstub_lib.h index 8cd4bfa80..fa5151a8c 100644 --- a/src/include/gnunet_dnsstub_lib.h +++ b/src/include/gnunet_dnsstub_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 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
22 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
23 | #endif | ||
24 | |||
21 | /** | 25 | /** |
22 | * @addtogroup libgnunetutil | 26 | * @addtogroup libgnunetutil |
23 | * @{ | 27 | * @{ |
diff --git a/src/include/gnunet_fragmentation_lib.h b/src/include/gnunet_fragmentation_lib.h index cec4b9154..c8e99826a 100644 --- a/src/include/gnunet_fragmentation_lib.h +++ b/src/include/gnunet_fragmentation_lib.h | |||
@@ -39,7 +39,6 @@ | |||
39 | 39 | ||
40 | 40 | ||
41 | #include "gnunet_util_lib.h" | 41 | #include "gnunet_util_lib.h" |
42 | #include "gnunet_bandwidth_lib.h" | ||
43 | #include "gnunet_statistics_service.h" | 42 | #include "gnunet_statistics_service.h" |
44 | 43 | ||
45 | #ifdef __cplusplus | 44 | #ifdef __cplusplus |
diff --git a/src/include/gnunet_getopt_lib.h b/src/include/gnunet_getopt_lib.h index 49bb0d77b..390e8c153 100644 --- a/src/include/gnunet_getopt_lib.h +++ b/src/include/gnunet_getopt_lib.h | |||
@@ -33,6 +33,10 @@ | |||
33 | * @{ | 33 | * @{ |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
37 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
38 | #endif | ||
39 | |||
36 | #ifndef GNUNET_GETOPT_LIB_H | 40 | #ifndef GNUNET_GETOPT_LIB_H |
37 | #define GNUNET_GETOPT_LIB_H | 41 | #define GNUNET_GETOPT_LIB_H |
38 | 42 | ||
diff --git a/src/include/gnunet_gns_service.h b/src/include/gnunet_gns_service.h index e296d0ef9..1fcf7aa8b 100644 --- a/src/include/gnunet_gns_service.h +++ b/src/include/gnunet_gns_service.h | |||
@@ -39,7 +39,6 @@ | |||
39 | 39 | ||
40 | 40 | ||
41 | #include "gnunet_util_lib.h" | 41 | #include "gnunet_util_lib.h" |
42 | #include "gnunet_dnsparser_lib.h" | ||
43 | #include "gnunet_identity_service.h" | 42 | #include "gnunet_identity_service.h" |
44 | #include "gnunet_namestore_service.h" | 43 | #include "gnunet_namestore_service.h" |
45 | 44 | ||
diff --git a/src/include/gnunet_helper_lib.h b/src/include/gnunet_helper_lib.h index ac7d1602d..2279abb24 100644 --- a/src/include/gnunet_helper_lib.h +++ b/src/include/gnunet_helper_lib.h | |||
@@ -38,11 +38,14 @@ | |||
38 | * @{ | 38 | * @{ |
39 | */ | 39 | */ |
40 | 40 | ||
41 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
42 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
43 | #endif | ||
44 | |||
41 | #ifndef GNUNET_HELPER_LIB_H | 45 | #ifndef GNUNET_HELPER_LIB_H |
42 | #define GNUNET_HELPER_LIB_H | 46 | #define GNUNET_HELPER_LIB_H |
43 | 47 | ||
44 | 48 | ||
45 | #include "gnunet_scheduler_lib.h" | ||
46 | #include "gnunet_mst_lib.h" | 49 | #include "gnunet_mst_lib.h" |
47 | 50 | ||
48 | 51 | ||
diff --git a/src/include/gnunet_messenger_service.h b/src/include/gnunet_messenger_service.h index 961f57eb0..07d22d85c 100644 --- a/src/include/gnunet_messenger_service.h +++ b/src/include/gnunet_messenger_service.h | |||
@@ -42,9 +42,8 @@ extern "C" { | |||
42 | 42 | ||
43 | #include "platform.h" | 43 | #include "platform.h" |
44 | #include "gnunet_configuration_lib.h" | 44 | #include "gnunet_configuration_lib.h" |
45 | #include "gnunet_crypto_lib.h" | 45 | #include "gnunet_util_lib.h" |
46 | #include "gnunet_identity_service.h" | 46 | #include "gnunet_identity_service.h" |
47 | #include "gnunet_mq_lib.h" | ||
48 | #include "gnunet_protocols.h" | 47 | #include "gnunet_protocols.h" |
49 | #include "gnunet_scheduler_lib.h" | 48 | #include "gnunet_scheduler_lib.h" |
50 | #include "gnunet_time_lib.h" | 49 | #include "gnunet_time_lib.h" |
diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h index 09d2ff0ea..95e8c619b 100644 --- a/src/include/gnunet_mq_lib.h +++ b/src/include/gnunet_mq_lib.h | |||
@@ -18,6 +18,11 @@ | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
22 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
23 | #endif | ||
24 | |||
25 | |||
21 | /** | 26 | /** |
22 | * @addtogroup libgnunetutil | 27 | * @addtogroup libgnunetutil |
23 | * Multi-function utilities library for GNUnet programs | 28 | * Multi-function utilities library for GNUnet programs |
diff --git a/src/include/gnunet_mst_lib.h b/src/include/gnunet_mst_lib.h index 052540ff5..3ad98a33b 100644 --- a/src/include/gnunet_mst_lib.h +++ b/src/include/gnunet_mst_lib.h | |||
@@ -39,6 +39,10 @@ | |||
39 | * @{ | 39 | * @{ |
40 | */ | 40 | */ |
41 | 41 | ||
42 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
43 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
44 | #endif | ||
45 | |||
42 | #ifndef GNUNET_MST_LIB_H | 46 | #ifndef GNUNET_MST_LIB_H |
43 | #define GNUNET_MST_LIB_H | 47 | #define GNUNET_MST_LIB_H |
44 | 48 | ||
diff --git a/src/include/gnunet_nc_lib.h b/src/include/gnunet_nc_lib.h index dbd2aa12f..8f4d9a16f 100644 --- a/src/include/gnunet_nc_lib.h +++ b/src/include/gnunet_nc_lib.h | |||
@@ -17,6 +17,12 @@ | |||
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | |||
21 | |||
22 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
23 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
24 | #endif | ||
25 | |||
20 | /** | 26 | /** |
21 | * @addtogroup libgnunetutil | 27 | * @addtogroup libgnunetutil |
22 | * Multi-function utilities library for GNUnet programs | 28 | * Multi-function utilities library for GNUnet programs |
diff --git a/src/include/gnunet_op_lib.h b/src/include/gnunet_op_lib.h index 2c2abf7da..e028fb7fb 100644 --- a/src/include/gnunet_op_lib.h +++ b/src/include/gnunet_op_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 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
22 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
23 | #endif | ||
24 | |||
21 | /** | 25 | /** |
22 | * @addtogroup libgnunetutil | 26 | * @addtogroup libgnunetutil |
23 | * Multi-function utilities library for GNUnet programs | 27 | * Multi-function utilities library for GNUnet programs |
diff --git a/src/include/gnunet_peer_lib.h b/src/include/gnunet_peer_lib.h index e4a34021a..4a67878b9 100644 --- a/src/include/gnunet_peer_lib.h +++ b/src/include/gnunet_peer_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 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
22 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
23 | #endif | ||
24 | |||
21 | /** | 25 | /** |
22 | * @addtogroup libgnunetutil | 26 | * @addtogroup libgnunetutil |
23 | * Multi-function utilities library for GNUnet programs | 27 | * Multi-function utilities library for GNUnet programs |
diff --git a/src/include/gnunet_peerinfo_service.h b/src/include/gnunet_peerinfo_service.h index 89c6b65f8..806de963c 100644 --- a/src/include/gnunet_peerinfo_service.h +++ b/src/include/gnunet_peerinfo_service.h | |||
@@ -41,8 +41,7 @@ | |||
41 | 41 | ||
42 | 42 | ||
43 | #include "gnunet_common.h" | 43 | #include "gnunet_common.h" |
44 | #include "gnunet_configuration_lib.h" | 44 | #include "gnunet_util_lib.h" |
45 | #include "gnunet_crypto_lib.h" | ||
46 | #include "gnunet_hello_lib.h" | 45 | #include "gnunet_hello_lib.h" |
47 | 46 | ||
48 | #ifdef __cplusplus | 47 | #ifdef __cplusplus |
diff --git a/src/include/gnunet_plugin_lib.h b/src/include/gnunet_plugin_lib.h index ea548b196..df555e0cf 100644 --- a/src/include/gnunet_plugin_lib.h +++ b/src/include/gnunet_plugin_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 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
22 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
23 | #endif | ||
24 | |||
21 | /** | 25 | /** |
22 | * @addtogroup libgnunetutil | 26 | * @addtogroup libgnunetutil |
23 | * Multi-function utilities library for GNUnet programs | 27 | * Multi-function utilities library for GNUnet programs |
diff --git a/src/include/gnunet_program_lib.h b/src/include/gnunet_program_lib.h index 2aadd1b8e..0c51d6cf7 100644 --- a/src/include/gnunet_program_lib.h +++ b/src/include/gnunet_program_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 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
22 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
23 | #endif | ||
24 | |||
21 | /** | 25 | /** |
22 | * @addtogroup libgnunetutil | 26 | * @addtogroup libgnunetutil |
23 | * Multi-function utilities library for GNUnet programs | 27 | * Multi-function utilities library for GNUnet programs |
diff --git a/src/include/gnunet_service_lib.h b/src/include/gnunet_service_lib.h index aef42be5f..7c6ce0c0e 100644 --- a/src/include/gnunet_service_lib.h +++ b/src/include/gnunet_service_lib.h | |||
@@ -18,6 +18,11 @@ | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | 20 | ||
21 | |||
22 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
23 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
24 | #endif | ||
25 | |||
21 | /** | 26 | /** |
22 | * @addtogroup libgnunetutil | 27 | * @addtogroup libgnunetutil |
23 | * Multi-function utilities library for GNUnet programs | 28 | * Multi-function utilities library for GNUnet programs |
@@ -50,9 +55,8 @@ extern "C" | |||
50 | #endif | 55 | #endif |
51 | #endif | 56 | #endif |
52 | 57 | ||
53 | 58 | #include "gnunet_util_lib.h" | |
54 | #include "gnunet_configuration_lib.h" | 59 | #include "gnunet_configuration_lib.h" |
55 | #include "gnunet_mq_lib.h" | ||
56 | 60 | ||
57 | 61 | ||
58 | /** | 62 | /** |
diff --git a/src/include/gnunet_signal_lib.h b/src/include/gnunet_signal_lib.h index f70f22403..02fbbf005 100644 --- a/src/include/gnunet_signal_lib.h +++ b/src/include/gnunet_signal_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 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
22 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
23 | #endif | ||
24 | |||
21 | /** | 25 | /** |
22 | * @addtogroup libgnunetutil | 26 | * @addtogroup libgnunetutil |
23 | * Multi-function utilities library for GNUnet programs | 27 | * Multi-function utilities library for GNUnet programs |
diff --git a/src/include/gnunet_strings_lib.h b/src/include/gnunet_strings_lib.h index 65d643b2d..b751ef044 100644 --- a/src/include/gnunet_strings_lib.h +++ b/src/include/gnunet_strings_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 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
22 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
23 | #endif | ||
24 | |||
21 | /** | 25 | /** |
22 | * @addtogroup libgnunetutil | 26 | * @addtogroup libgnunetutil |
23 | * Multi-function utilities library for GNUnet programs | 27 | * Multi-function utilities library for GNUnet programs |
@@ -37,6 +41,10 @@ | |||
37 | * @{ | 41 | * @{ |
38 | */ | 42 | */ |
39 | 43 | ||
44 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
45 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
46 | #endif | ||
47 | |||
40 | #ifndef GNUNET_STRINGS_LIB_H | 48 | #ifndef GNUNET_STRINGS_LIB_H |
41 | #define GNUNET_STRINGS_LIB_H | 49 | #define GNUNET_STRINGS_LIB_H |
42 | 50 | ||
diff --git a/src/include/gnunet_tun_lib.h b/src/include/gnunet_tun_lib.h index a48bb3fbe..ab397b049 100644 --- a/src/include/gnunet_tun_lib.h +++ b/src/include/gnunet_tun_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 | #if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) | ||
22 | #error "Only <gnunet_util_lib.h> can be included directly." | ||
23 | #endif | ||
24 | |||
21 | /** | 25 | /** |
22 | * @addtogroup vpn_suite VPN services and libraries | 26 | * @addtogroup vpn_suite VPN services and libraries |
23 | * @{ | 27 | * @{ |
diff --git a/src/include/gnunet_util_lib.h b/src/include/gnunet_util_lib.h index 25df4e234..52fa5c373 100644 --- a/src/include/gnunet_util_lib.h +++ b/src/include/gnunet_util_lib.h | |||
@@ -30,6 +30,8 @@ | |||
30 | #ifndef GNUNET_UTIL_LIB_H | 30 | #ifndef GNUNET_UTIL_LIB_H |
31 | #define GNUNET_UTIL_LIB_H | 31 | #define GNUNET_UTIL_LIB_H |
32 | 32 | ||
33 | #define __GNUNET_UTIL_LIB_H_INSIDE__ | ||
34 | |||
33 | #include <sys/socket.h> | 35 | #include <sys/socket.h> |
34 | 36 | ||
35 | #ifdef __cplusplus | 37 | #ifdef __cplusplus |
@@ -97,4 +99,6 @@ extern "C" | |||
97 | } | 99 | } |
98 | #endif | 100 | #endif |
99 | 101 | ||
102 | #undef __GNUNET_UTIL_LIB_H_INSIDE__ | ||
103 | |||
100 | #endif | 104 | #endif |