diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-05 12:57:03 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-05 12:57:03 +0900 |
commit | 8fd3a06ccdee5319d9a3b6d42201e879375bbb2a (patch) | |
tree | 5cdaa986da66e697377fc1648191756067793c82 /src/include | |
parent | 0f07267b0523cb2f05687812717398bc9b0cf732 (diff) | |
download | gnunet-8fd3a06ccdee5319d9a3b6d42201e879375bbb2a.tar.gz gnunet-8fd3a06ccdee5319d9a3b6d42201e879375bbb2a.zip |
-more util include cleanups
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_bandwidth_lib.h | 5 | ||||
-rw-r--r-- | src/include/gnunet_common.h | 2 | ||||
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 1 | ||||
-rw-r--r-- | src/include/gnunet_mst_lib.h | 3 | ||||
-rw-r--r-- | src/include/gnunet_os_lib.h | 9 | ||||
-rw-r--r-- | src/include/gnunet_plugin_lib.h | 4 | ||||
-rw-r--r-- | src/include/gnunet_tun_lib.h | 4 | ||||
-rw-r--r-- | src/include/gnunet_util_lib.h | 2 |
8 files changed, 11 insertions, 19 deletions
diff --git a/src/include/gnunet_bandwidth_lib.h b/src/include/gnunet_bandwidth_lib.h index 359bf95c4..7c854aab5 100644 --- a/src/include/gnunet_bandwidth_lib.h +++ b/src/include/gnunet_bandwidth_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 |
@@ -48,7 +52,6 @@ extern "C" { | |||
48 | #endif | 52 | #endif |
49 | 53 | ||
50 | 54 | ||
51 | #include "gnunet_common.h" | ||
52 | #include "gnunet_time_lib.h" | 55 | #include "gnunet_time_lib.h" |
53 | 56 | ||
54 | GNUNET_NETWORK_STRUCT_BEGIN | 57 | GNUNET_NETWORK_STRUCT_BEGIN |
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 0c3300125..07a847814 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h | |||
@@ -44,7 +44,9 @@ | |||
44 | 44 | ||
45 | #include <stdlib.h> | 45 | #include <stdlib.h> |
46 | #include <sys/socket.h> | 46 | #include <sys/socket.h> |
47 | #include <sys/un.h> | ||
47 | #include <netinet/in.h> | 48 | #include <netinet/in.h> |
49 | #include <arpa/inet.h> | ||
48 | #include <stdint.h> | 50 | #include <stdint.h> |
49 | #include <stdarg.h> | 51 | #include <stdarg.h> |
50 | #include <sys/types.h> | 52 | #include <sys/types.h> |
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 3fac945a5..8d400118a 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -67,7 +67,6 @@ extern "C" { | |||
67 | */ | 67 | */ |
68 | struct GNUNET_PeerIdentity; | 68 | struct GNUNET_PeerIdentity; |
69 | 69 | ||
70 | #include "gnunet_common.h" | ||
71 | #include <gcrypt.h> | 70 | #include <gcrypt.h> |
72 | 71 | ||
73 | 72 | ||
diff --git a/src/include/gnunet_mst_lib.h b/src/include/gnunet_mst_lib.h index 3ad98a33b..af2dd3353 100644 --- a/src/include/gnunet_mst_lib.h +++ b/src/include/gnunet_mst_lib.h | |||
@@ -55,9 +55,6 @@ extern "C" | |||
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | 57 | ||
58 | #include "gnunet_common.h" | ||
59 | |||
60 | |||
61 | /** | 58 | /** |
62 | * Handle to a message stream tokenizer. | 59 | * Handle to a message stream tokenizer. |
63 | */ | 60 | */ |
diff --git a/src/include/gnunet_os_lib.h b/src/include/gnunet_os_lib.h index 428d8610b..015282054 100644 --- a/src/include/gnunet_os_lib.h +++ b/src/include/gnunet_os_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 |
@@ -61,11 +65,6 @@ extern "C" | |||
61 | #endif | 65 | #endif |
62 | 66 | ||
63 | 67 | ||
64 | #include "gnunet_common.h" | ||
65 | #include "gnunet_configuration_lib.h" | ||
66 | #include "gnunet_scheduler_lib.h" | ||
67 | |||
68 | |||
69 | /** | 68 | /** |
70 | * Flags that determine which of the standard streams | 69 | * Flags that determine which of the standard streams |
71 | * should be inherited by the child process. | 70 | * should be inherited by the child process. |
diff --git a/src/include/gnunet_plugin_lib.h b/src/include/gnunet_plugin_lib.h index df555e0cf..a3135e2cf 100644 --- a/src/include/gnunet_plugin_lib.h +++ b/src/include/gnunet_plugin_lib.h | |||
@@ -49,10 +49,6 @@ extern "C" | |||
49 | #endif | 49 | #endif |
50 | 50 | ||
51 | 51 | ||
52 | #include "gnunet_common.h" | ||
53 | #include "gnunet_configuration_lib.h" | ||
54 | |||
55 | |||
56 | /** | 52 | /** |
57 | * Signature of any function exported by a plugin. | 53 | * Signature of any function exported by a plugin. |
58 | * | 54 | * |
diff --git a/src/include/gnunet_tun_lib.h b/src/include/gnunet_tun_lib.h index ab397b049..17acfe5f8 100644 --- a/src/include/gnunet_tun_lib.h +++ b/src/include/gnunet_tun_lib.h | |||
@@ -42,10 +42,6 @@ | |||
42 | #define GNUNET_TUN_LIB_H | 42 | #define GNUNET_TUN_LIB_H |
43 | 43 | ||
44 | 44 | ||
45 | #include "gnunet_common.h" | ||
46 | #include "gnunet_crypto_lib.h" | ||
47 | |||
48 | |||
49 | /* see http://www.iana.org/assignments/ethernet-numbers */ | 45 | /* see http://www.iana.org/assignments/ethernet-numbers */ |
50 | #ifndef ETH_P_IPV4 | 46 | #ifndef ETH_P_IPV4 |
51 | /** | 47 | /** |
diff --git a/src/include/gnunet_util_lib.h b/src/include/gnunet_util_lib.h index 337552a0c..280304825 100644 --- a/src/include/gnunet_util_lib.h +++ b/src/include/gnunet_util_lib.h | |||
@@ -65,7 +65,7 @@ extern "C" | |||
65 | #define GNUNET_AGPL_URL "https://git.gnunet.org/gnunet.git/tag/?h=v" \ | 65 | #define GNUNET_AGPL_URL "https://git.gnunet.org/gnunet.git/tag/?h=v" \ |
66 | GNUNET_VERSION | 66 | GNUNET_VERSION |
67 | 67 | ||
68 | 68 | #include "gnunet_common.h" | |
69 | #include "gnunet_crypto_lib.h" | 69 | #include "gnunet_crypto_lib.h" |
70 | #include "gnunet_bandwidth_lib.h" | 70 | #include "gnunet_bandwidth_lib.h" |
71 | #include "gnunet_bio_lib.h" | 71 | #include "gnunet_bio_lib.h" |