// Copyright (C) Matrix Construct Developers, Authors & Contributors // Copyright (C) 2016-2018 Jason Volk // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice is present in all copies. // // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE // DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. /////////////////////////////////////////////////////////////////////////////// // // Standard includes // // This header includes almost everything we use out of the standard library. // This is a pre-compiled header. Project build time is significantly reduced // by doing things this way and C++ std headers have very little namespace // pollution and risk of conflicts. // // * If any project header file requires standard library symbols we try to // list it here, not in our header files. // // * Rare one-off's #includes isolated to a specific .cc file may not always be // listed here but can be. // // * Third party / dependency / non-std includes, are NEVER listed here. // Instead we include those in .cc files, and use forward declarations if // we require a symbol in our API to them. // #define HAVE_IRCD_STDINC_H // Generated by ./configure #include "config.h" extern "C" { #include using ilist = std::initializer_list; } namespace ircd { enum class runlevel :int; using runlevel_handler = std::function; constexpr size_t BUFSIZE { 512 }; extern const enum runlevel &runlevel; extern const std::string &conf; extern bool debugmode; ///< Toggle; available only ifdef RB_DEBUG std::string demangle(const std::string &symbol); template std::string demangle(); } #include "util/util.h" #include "exception.h" #include "string_view.h" #include "vector_view.h" #include "array_view.h" #include "byte_view.h" #include "allocator.h" #include "buffer.h" #include "date.h" #include "logger.h" #include "nacl.h" #include "rand.h" #include "hash.h" #include "ed25519.h" #include "info.h" #include "localee.h" #include "color.h" #include "lex_cast.h" #include "stringops.h" #include "tokens.h" #include "params.h" #include "iov.h" #include "parse.h" #include "rfc1459.h" #include "json/json.h" #include "openssl.h" #include "http.h" #include "fmt.h" #include "fs/fs.h" #include "ios.h" #include "ctx/ctx.h" #include "db/db.h" #include "js.h" #include "mods.h" #include "rfc3986.h" #include "rfc1035.h" #include "net/net.h" #include "server.h" #include "client.h" #include "resource.h"