]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add build.h and missing.h to all public headers in libfreeradius-util
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 19 Jul 2018 16:35:19 +0000 (12:35 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 19 Jul 2018 16:35:19 +0000 (12:35 -0400)
This ensures things linking to libfreeradius-util can use the headers individually.

45 files changed:
src/lib/util/ascend.h
src/lib/util/base64.h
src/lib/util/cursor.h
src/lib/util/debug.h
src/lib/util/dict.h
src/lib/util/dlist.h
src/lib/util/event.h
src/lib/util/fifo.h
src/lib/util/fring.h
src/lib/util/hash.h
src/lib/util/heap.h
src/lib/util/inet.h
src/lib/util/log.c
src/lib/util/log.h
src/lib/util/md4.h
src/lib/util/md5.h
src/lib/util/misc.h
src/lib/util/net.h
src/lib/util/packet.h
src/lib/util/pair.h
src/lib/util/pair_cursor.c
src/lib/util/pair_cursor.h
src/lib/util/pcap.h
src/lib/util/print.h
src/lib/util/proto.h
src/lib/util/rand.h
src/lib/util/rbtree.h
src/lib/util/regex.h
src/lib/util/sha1.h
src/lib/util/snprintf.h
src/lib/util/socket.h
src/lib/util/strerror.h
src/lib/util/syserror.c
src/lib/util/syserror.h
src/lib/util/talloc.c
src/lib/util/talloc.h
src/lib/util/thread_local.h
src/lib/util/token.h
src/lib/util/trie.c
src/lib/util/trie.h
src/lib/util/udp.c
src/lib/util/udp.h
src/lib/util/udpfromto.h
src/lib/util/value.h
src/lib/util/version.h

index 18d110ce0fd67ad24d576df837197a6247f09e0a..030fbf2948b84d95083a19a40a842263bb6fe3d5 100644 (file)
@@ -27,6 +27,8 @@ extern "C" {
 #endif
 
 #ifdef WITH_ASCEND_BINARY
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
 #include <freeradius-devel/util/value.h>
 
 /* filters.c */
index fee40a7e129206bde618060226d3bcc7199f2c82..29e1af95dd706b45cab667b05ff8f59b1bc39bc1 100644 (file)
@@ -28,6 +28,9 @@ RCSIDH(base64_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <stdbool.h>
 #include <stddef.h>
 #include <stdint.h>
index 3659f954243c71d234fe2cb564e24287445d4372..1a6af7cca5936555f108f2f62e47270b4e251a70 100644 (file)
@@ -26,6 +26,9 @@ RCSIDH(cursor_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <stddef.h>
 #include <talloc.h>
 
index 31b1e9b5852c3f30c5d622e157f65dd2ff0665ba..c43b00ae9dc93efe8963bcfe1d7072462bee6101 100644 (file)
@@ -25,6 +25,8 @@
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
 #include <freeradius-devel/util/fring.h>
 
 #define MEM(x) if (!(x)) { ERROR("%s[%u] OUT OF MEMORY", __FILE__, __LINE__); _fr_exit_now(__FILE__, __LINE__, EXIT_FAILURE); }
index 36ebb2d898502fbadfcc350a2efcd835dd1363d2..ecd0270f51c610891cda40fb03edb4b9ce16f169 100644 (file)
@@ -26,6 +26,8 @@
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
 #include <freeradius-devel/util/token.h>
 #include <freeradius-devel/util/types.h>
 
index 17f6573b3881b28a42641f7c4b0cebca9a225cb5..39c06777a0645c01d2d2f267245ecc52cfcf5879 100644 (file)
@@ -27,6 +27,9 @@ RCSIDH(dlist_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 /** Entry in a doubly linked list
  *
  */
index cb0d26c55abf9090504dfc855d992e39cefa62f3..ef2cf45da6d21e68184b80e138bd37a7f417f33c 100644 (file)
@@ -28,6 +28,7 @@ RCSIDH(event_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
 #include <freeradius-devel/missing.h>
 
 #include <stdbool.h>
index a026abdf8ed24340fd090c998e694a5f43904f1c..9443dfbf389fc408890942f19931a0d57b707010 100644 (file)
@@ -28,6 +28,9 @@ RCSIDH(fifo_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <talloc.h>
 
 typedef struct fr_fifo_t fr_fifo_t;
index d3d87e270740cf08417a690529293722bfd63a5f..50c26b81f985e66631a231b2c45144012da5ad99 100644 (file)
@@ -27,6 +27,9 @@ RCSIDH(fring_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <stdbool.h>
 #include <stdint.h>
 #include <talloc.h>
index 6c0540616922604043196500418cbe0b32ccf663..0d784798c56b1f7cbefa03a1f65d7720c1cb8e57 100644 (file)
@@ -27,6 +27,9 @@ RCSIDH(hash_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <stddef.h>
 #include <stdint.h>
 #include <talloc.h>
index 6c935b8dc2c7233c9272412ad4aedde184c56d9d..0442c1a998247bba7333572b76d758025075a437 100644 (file)
@@ -27,6 +27,9 @@ RCSIDH(heap_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <stdint.h>
 #include <sys/types.h>
 #include <talloc.h>
index f760659a64bae5e2cfc0448cb2a16029b1465c4c..b8d6ee63292b4cbe5a63da505817e3abdc5ebe7f 100644 (file)
@@ -24,6 +24,9 @@
  */
 RCSIDH(inet_h, "$Id$")
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <arpa/inet.h>
 #include <net/if.h>            /* SIOCGIFADDR et al */
 #include <netinet/in.h>                /* in6?_addr */
index e7538afbf16723bf3394e4e14957dae771e53478..b01773433f915742d374b83b21c4f11d27872d9d 100644 (file)
@@ -24,7 +24,6 @@ RCSID("$Id$")
 
 #include "log.h"
 
-#include <freeradius-devel/missing.h>
 #include <freeradius-devel/util/debug.h>
 #include <freeradius-devel/util/print.h>
 #include <freeradius-devel/util/strerror.h>
index 85252beba339e403d4706bdecf32c180e1bb41b2..8942b2b82cfcab30496ba6c2f21fd9ac1f462082 100644 (file)
@@ -26,6 +26,8 @@ RCSIDH(util_log_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
 #include <freeradius-devel/util/token.h>
 
 #include <stdbool.h>
index 6363736b3eccbfd80f991509370338c76ebf820e..f4da6a14cc2e1b6de68f9969d6958d1f59c80f88 100644 (file)
@@ -12,6 +12,9 @@ RCSIDH(md4_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #ifdef HAVE_INTTYPES_H
 #  include <inttypes.h>
 #endif
index f94e15a4e674a4a72d1f2dcb3e7425204fd380ac..bbffd0dd761b315db31b3865ed4e9775e5f78b51 100644 (file)
@@ -11,6 +11,9 @@ RCSIDH(md5_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #ifdef HAVE_INTTYPES_H
 #  include <inttypes.h>
 #endif
index 69091582d1bc296a143b45153f05c7d41f3fc8ff..f5147e75bb16c7a398efbdfc9b2ee8a444487282 100644 (file)
@@ -27,6 +27,7 @@ RCSIDH(misc_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
 #include <freeradius-devel/missing.h>
 #include <freeradius-devel/util/print.h>
 
index 66c212731701a319f7a4dfe2d08bcf6eac026dc8..fe33806608f68893df22eb5a76dce4eb766907c5 100644 (file)
@@ -32,6 +32,8 @@ extern "C" {
 #  include <pcap.h>
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
 #include <freeradius-devel/util/hash.h>
 #include <freeradius-devel/util/strerror.h>
 #include <freeradius-devel/util/token.h>
index da51804e168670a17e57655df4a76c5d89be7744..088591f27a0ebc21b1c67c93bb787e6317244646 100644 (file)
@@ -27,6 +27,8 @@ RCSIDH(packet_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
 #include <freeradius-devel/util/inet.h>
 #include <freeradius-devel/util/pair.h>
 #include <freeradius-devel/util/rbtree.h>
index 733fea28069335cb3a38697094c9280f3b28b356..8d1e00b2ddf0f8a210f66953e85d87ece07bf0d1 100644 (file)
@@ -23,6 +23,8 @@
  */
 RCSIDH(pair_h, "$Id$")
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
 #include <freeradius-devel/util/cursor.h>
 #include <freeradius-devel/util/value.h>
 
index 94c7376315558ef1538cec4c6e6a1d7f4ff513a9..42862c276853665e86f08ffdb537f06b42c101d7 100644 (file)
@@ -26,6 +26,8 @@
  */
 #include "pair_cursor.h"
 
+#include <freeradius-devel/missing.h>
+
 /** Internal function to update cursor state
  *
  * @param cursor to operate on.
index 548e6231418d785ce1bd0b68911c0e43d0f00bff..22c185ba0f704c38acf8280d4b9c63c74eb6da91 100644 (file)
@@ -26,6 +26,8 @@ RCSIDH(pair_cursor_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
 #include <freeradius-devel/util/pair.h>
 
 VALUE_PAIR     *fr_pair_cursor_init(vp_cursor_t *cursor, VALUE_PAIR * const *node);
index d93cb264d059ea036864ef48942c5f62873289e7..cb84562dd9f2d53fe9a061fd7df7a77198149888 100644 (file)
@@ -30,6 +30,8 @@ extern "C" {
 
 #include "pcap.h"
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
 #include <freeradius-devel/util/net.h>
 
 #include <pcap.h>
index 5e7b18a675ae570997965284303eb49318e73a96..a8718437fa2897a834e129adf4ab5a2ecfe51edc 100644 (file)
@@ -27,6 +27,9 @@ RCSIDH(print_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <stddef.h>
 #include <stdint.h>
 #include <talloc.h>
index 1a758f0026db8209fb1943303489df8ad947b8c1..d88d5a21a46f4306bc0337440c111aa8d5f97909 100644 (file)
@@ -27,6 +27,8 @@ RCSIDH(proto_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
 #include <freeradius-devel/util/dict.h>
 
 #define CHECK_FREESPACE(_have, _need) \
index 5b67d0a97c53fa94d3db8074850bfe1a79649cc1..273c8bcbb99911508acd01dca6ebb3c5d43882d7 100644 (file)
@@ -26,6 +26,9 @@ RCSIDH(rand_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <stddef.h>
 #include <stdint.h>
 
index 26e1d88ed8a9cb4627b2f156b47895c79e1e835e..eb7c16f8c241dd11691a261b4a614b6ec7d53ead 100644 (file)
@@ -27,6 +27,9 @@ RCSIDH(rbtree_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <stdbool.h>
 #include <stdint.h>
 #include <talloc.h>
index fbd4d84cd91e1201d8f7ee280ddaedce2a13d69a..db7d2d8bc267fd41b94544f657b83a74de42ac25 100644 (file)
@@ -27,6 +27,9 @@ RCSIDH(regex_h, "$Id$")
 extern "C" {
 #  endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <stdbool.h>
 #include <stdint.h>
 #include <talloc.h>
index 08561a7bed694f06cfc1721f3e58cc7fb9436f5b..8856a811acb6822cf67ba2227108eeea07f86828 100644 (file)
@@ -13,6 +13,9 @@ RCSIDH(sha1_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #ifdef WITH_OPENSSL_SHA1
 #  include <openssl/sha.h>
 #endif
index e1a913a0fd99e75307cee096fdda1fc5501791ab..ccced37d610e5014b5c35eb0662a3d20f66b4816 100644 (file)
@@ -37,6 +37,9 @@ RCSIDH(snprintf_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #if __STDC__
 #include <stdarg.h>
 #else
index cf8237cc64b85dd2d263aa466983ba261c0952de..326a78ebc18b1c39eb1955341dea5fb586a2af49 100644 (file)
@@ -31,6 +31,8 @@ RCSIDH(socket_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
 #include <freeradius-devel/util/inet.h>
 
 #include <stdbool.h>
index 67722e96f3e4ed1d121e51b3a1e20a8d049fa9b9..36e8db9a7bec1b9516fac2851e9e1c13374ba50c 100644 (file)
@@ -28,6 +28,9 @@ RCSIDH(strerror_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <string.h>
 
 void           fr_strerror_printf(char const *, ...) CC_HINT(format (printf, 1, 2));
index 080f370ef98caedce1213372cab1ef39eb9bcc18..1eabbc575c0830edadc04e5f4dc66e8580079d16 100644 (file)
@@ -25,7 +25,6 @@ RCSID("$Id$")
 
 #include "syserror.h"
 
-#include <freeradius-devel/missing.h>
 #include <freeradius-devel/util/log.h>
 #include <freeradius-devel/util/strerror.h>
 #include <freeradius-devel/util/thread_local.h>
index d0e3860903173cb0f825a8d5c23d976a2e2439c8..80147189c8d55b7de8445d252319f1adf6d77c5e 100644 (file)
@@ -28,6 +28,9 @@ RCSIDH(syserror_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <errno.h>
 #include <stdint.h>
 #include <string.h>
index 04bfb3f1ea799cc1b314828dd3157b355e336139..082de53ddf321e671b04d13250e0767187dd6b8e 100644 (file)
@@ -23,8 +23,6 @@
  */
 RCSID("$Id$")
 
-#include <freeradius-devel/util/talloc.h>
-
 #include <string.h>
 
 typedef struct fr_talloc_link  fr_talloc_link_t;
index 5a16d72bd35d1e9455574d5ed633021b5754feb3..827bf9d21c84db9d49e3a2dfd0b65a675902895f 100644 (file)
@@ -28,6 +28,7 @@ RCSIDH(talloc_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
 #include <freeradius-devel/missing.h>
 
 #include <ctype.h>
index 07d8ce5aa99809b2c51341faae45ceb96660f2a2..eff086dfec8ac423e83777ff573e1819a9438be7 100644 (file)
@@ -29,6 +29,9 @@ RCSIDH(thread_local_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <errno.h>
 
 typedef void (*pthread_destructor_t)(void*);
index 78567123567fe195aeb948f23e640de05d0ecbf6..cc1313615c1cbd1d5052827d04945e0adb7f214b 100644 (file)
@@ -29,6 +29,9 @@ RCSIDH(token_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <stdbool.h>
 #include <stdint.h>
 
index ba05daec5908161186cac6a2fa246f3bf85b91df..1bf5a7066dfb56447151c343baa1b70de2506ccd 100644 (file)
@@ -22,7 +22,6 @@
  */
 RCSID("$Id$")
 
-#include <freeradius-devel/server/rad_assert.h>
 #include <freeradius-devel/util/dict.h>
 #include <freeradius-devel/util/syserror.h>
 #include <freeradius-devel/util/talloc.h>
index 572eb2ddcdab3c8a6c2834bc5fb1c22e436979fb..a61739c270a4d0b32d4dab3bb7e27319dfdfb269 100644 (file)
@@ -27,6 +27,9 @@ RCSIDH(trie_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdio.h>
index 0df8f8cfa3744fc104ef3a86c93978416aae9030..4a3b5eaed3028ba45c123af560cf70010cd3f460 100644 (file)
  */
 RCSID("$Id$")
 
+#include "udp.h"
+
 #include <freeradius-devel/util/log.h>
 #include <freeradius-devel/util/strerror.h>
 #include <freeradius-devel/util/syserror.h>
-#include <freeradius-devel/util/udp.h>
 
 /*
  *     This is easier than ifdef's in the function definition.
index 11ac019ea1f201d25eca3d34dde3f1d169bb08fe..4a1904e18f4f1e63a2e57d998c5e8b36d716bc23 100644 (file)
@@ -27,6 +27,8 @@ RCSIDH(udp_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
 #ifdef WITH_UDPFROMTO
 #  include <freeradius-devel/util/udpfromto.h>
 #endif
index 91545a519d037d21df79bfef858054b47eb047df..27ed0c82771fd5eb253e5d58104ff102f047f5ec 100644 (file)
@@ -30,6 +30,9 @@ extern "C" {
 #endif
 
 #ifdef WITH_UDPFROMTO
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <netinet/in.h>
 #include <stddef.h>
 #include <stdlib.h>
index 7318e5622cba5646dedbf1a34d65bf3d5b8efd13..301ee08cf92593f20041cbc42f335a8f7594f8e0 100644 (file)
@@ -27,6 +27,7 @@ RCSIDH(value_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
 #include <freeradius-devel/missing.h>
 #include <freeradius-devel/util/debug.h>
 #include <freeradius-devel/util/inet.h>
index f7bf49871a0906c8042bde42e3e479e354704780..dcc814ba3ac50aa65f39229d79c5d39d4086be01 100644 (file)
@@ -28,6 +28,9 @@ RCSIDH(version_h, "$Id$")
 extern "C" {
 #endif
 
+#include <freeradius-devel/build.h>
+#include <freeradius-devel/missing.h>
+
 #include <stdint.h>
 
 #ifndef NDEBUG