2020-02-21 11:07:49 -08:00
|
|
|
// The Construct
|
2018-02-03 18:22:01 -08:00
|
|
|
//
|
2020-02-21 11:07:49 -08:00
|
|
|
// Copyright (C) Construct Developers, Authors & Contributors
|
|
|
|
// Copyright (C) 2016-2020 Jason Volk <jason@zemos.net>
|
2018-02-03 18:22:01 -08:00
|
|
|
//
|
|
|
|
// 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. The
|
|
|
|
// full license for this software is available in the LICENSE file.
|
2007-01-24 22:40:21 -08:00
|
|
|
|
2019-04-20 15:41:11 -07:00
|
|
|
#ifndef HAVE_IRCD_IRCD_H
|
2018-06-15 16:13:18 -06:00
|
|
|
#define HAVE_IRCD_IRCD_H
|
|
|
|
|
2020-02-21 11:07:49 -08:00
|
|
|
//////////////////////////////////////////////////////////////////////////////>
|
|
|
|
//
|
|
|
|
// This is an aggregate header which ties together the general public
|
|
|
|
// interfaces for IRCd. Include this header to operate and embed the library in
|
|
|
|
// your application; no other includes from the project should be required.
|
|
|
|
//
|
|
|
|
// This header only includes standard library headers; we may forward declare
|
|
|
|
// third-party symbols, but only if their headers are not required.
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////////>
|
|
|
|
|
|
|
|
//
|
|
|
|
// Project configuration
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "config.h" // Generated by ./configure; do not edit
|
|
|
|
#include "assert.h" // Custom assert (during debug builds)
|
|
|
|
#include "portable.h" // Additional developer config; editable
|
|
|
|
|
|
|
|
//
|
|
|
|
// Standard library includes
|
|
|
|
//
|
|
|
|
|
2018-06-15 16:19:29 -06:00
|
|
|
#include "stdinc.h"
|
2020-02-21 11:07:49 -08:00
|
|
|
|
|
|
|
//
|
|
|
|
// Project library interfaces
|
|
|
|
//
|
|
|
|
|
2020-10-12 14:27:21 -07:00
|
|
|
#include "util/assume.h"
|
2020-10-09 23:43:27 -07:00
|
|
|
#include "util/mask.h"
|
2018-06-15 16:13:18 -06:00
|
|
|
#include "string_view.h"
|
|
|
|
#include "vector_view.h"
|
|
|
|
#include "byte_view.h"
|
|
|
|
#include "buffer/buffer.h"
|
2020-10-09 23:43:27 -07:00
|
|
|
#include "simd/simd.h"
|
2019-10-15 16:45:57 -07:00
|
|
|
#include "leb128.h"
|
2020-10-16 09:44:04 -07:00
|
|
|
#include "vg.h"
|
2018-06-15 16:13:18 -06:00
|
|
|
#include "allocator.h"
|
|
|
|
#include "util/util.h"
|
|
|
|
#include "exception.h"
|
2020-02-26 11:57:54 -08:00
|
|
|
#include "panic.h"
|
2019-01-18 08:55:06 -08:00
|
|
|
#include "run.h"
|
2018-06-15 16:13:18 -06:00
|
|
|
#include "demangle.h"
|
2019-09-19 22:02:57 -07:00
|
|
|
#include "backtrace.h"
|
2020-06-19 01:04:30 -07:00
|
|
|
#include "info.h"
|
|
|
|
#include "icu.h"
|
2020-06-27 14:27:16 -07:00
|
|
|
#include "utf.h"
|
2020-04-19 16:43:10 -07:00
|
|
|
#include "time.h"
|
2020-06-18 01:01:23 -07:00
|
|
|
#include "lex_cast.h"
|
2018-06-15 16:13:18 -06:00
|
|
|
#include "logger.h"
|
2020-06-18 01:01:23 -07:00
|
|
|
#include "sys.h"
|
|
|
|
#include "fpe.h"
|
2018-06-15 16:13:18 -06:00
|
|
|
#include "rand.h"
|
2018-11-08 17:04:15 -08:00
|
|
|
#include "crh.h"
|
2020-08-11 16:02:56 -07:00
|
|
|
#include "stringops.h"
|
2020-08-10 03:51:09 -07:00
|
|
|
#include "b64.h"
|
|
|
|
#include "b58.h"
|
2019-07-11 13:46:32 -07:00
|
|
|
#include "strl.h"
|
2019-09-18 09:49:40 -07:00
|
|
|
#include "strn.h"
|
2019-07-11 13:46:32 -07:00
|
|
|
#include "cmp.h"
|
|
|
|
#include "globular.h"
|
2018-06-15 16:13:18 -06:00
|
|
|
#include "tokens.h"
|
|
|
|
#include "iov.h"
|
2019-02-26 12:57:43 -08:00
|
|
|
#include "grammar.h"
|
2018-06-15 16:13:18 -06:00
|
|
|
#include "parse.h"
|
2020-06-11 00:43:36 -07:00
|
|
|
#include "color.h"
|
2018-06-15 16:13:18 -06:00
|
|
|
#include "rfc1459.h"
|
|
|
|
#include "json/json.h"
|
2020-07-31 21:34:45 -07:00
|
|
|
#include "cbor.h"
|
2020-06-11 00:43:36 -07:00
|
|
|
#include "nacl.h"
|
|
|
|
#include "ed25519.h"
|
2018-06-15 16:13:18 -06:00
|
|
|
#include "openssl.h"
|
2020-02-11 15:38:27 -08:00
|
|
|
#include "pbc.h"
|
2018-06-15 16:13:18 -06:00
|
|
|
#include "fmt.h"
|
2018-12-04 15:20:12 -08:00
|
|
|
#include "http.h"
|
2019-06-21 16:54:22 -07:00
|
|
|
#include "http2/http2.h"
|
2018-06-15 16:13:18 -06:00
|
|
|
#include "conf.h"
|
2020-04-19 17:51:51 -07:00
|
|
|
#include "magic.h"
|
2019-03-12 15:00:14 -07:00
|
|
|
#include "stats.h"
|
2019-07-31 14:06:13 -07:00
|
|
|
#include "prof/prof.h"
|
2018-06-15 16:13:18 -06:00
|
|
|
#include "fs/fs.h"
|
|
|
|
#include "ios.h"
|
|
|
|
#include "ctx/ctx.h"
|
2020-10-19 18:37:11 -07:00
|
|
|
#include "exec.h"
|
2018-06-15 16:13:18 -06:00
|
|
|
#include "db/db.h"
|
|
|
|
#include "js.h"
|
|
|
|
#include "mods/mods.h"
|
|
|
|
#include "rfc1035.h"
|
2019-03-13 10:31:11 -07:00
|
|
|
#include "rfc3986.h"
|
2018-06-15 16:13:18 -06:00
|
|
|
#include "net/net.h"
|
|
|
|
#include "server/server.h"
|
2019-09-24 17:55:01 -07:00
|
|
|
#include "magick.h"
|
2019-02-18 10:40:21 -08:00
|
|
|
#include "resource/resource.h"
|
2018-06-15 16:13:18 -06:00
|
|
|
#include "client.h"
|
|
|
|
|
2017-09-12 09:37:44 -07:00
|
|
|
/// \brief Internet Relay Chat daemon. This is the principal namespace for IRCd.
|
|
|
|
///
|
2017-08-28 14:51:22 -07:00
|
|
|
namespace ircd
|
|
|
|
{
|
2020-02-27 09:17:09 -08:00
|
|
|
// Library version information (also see info.h for more version related)
|
2019-09-25 12:48:00 -07:00
|
|
|
extern const info::versions version_api;
|
|
|
|
extern const info::versions version_abi;
|
2019-03-02 12:25:51 -08:00
|
|
|
|
2020-09-27 14:44:33 -07:00
|
|
|
// Diagnostic Mode Options
|
|
|
|
extern conf::item<std::string> diagnostic;
|
|
|
|
|
2020-09-30 22:01:21 -07:00
|
|
|
// Restart-Assist
|
|
|
|
extern conf::item<std::string> restart;
|
|
|
|
|
2020-09-15 18:01:40 -07:00
|
|
|
// Operating Mode Selectors
|
2019-03-02 12:25:51 -08:00
|
|
|
extern conf::item<bool> debugmode;
|
2020-09-15 18:01:40 -07:00
|
|
|
extern conf::item<bool> maintenance;
|
2019-06-01 02:02:37 -07:00
|
|
|
extern conf::item<bool> soft_assert;
|
2020-09-15 18:01:40 -07:00
|
|
|
extern conf::item<bool> write_avoid; // implies maintenance
|
|
|
|
extern conf::item<bool> read_only; // implies write_avoid
|
2020-04-24 21:26:06 -07:00
|
|
|
extern conf::item<bool> defaults;
|
2019-09-07 14:03:09 -07:00
|
|
|
|
2020-02-27 09:17:09 -08:00
|
|
|
// Informational
|
2019-09-25 12:48:00 -07:00
|
|
|
seconds uptime();
|
2020-02-27 09:17:09 -08:00
|
|
|
|
|
|
|
// Control panel
|
2019-09-25 12:48:00 -07:00
|
|
|
void cont() noexcept;
|
|
|
|
bool quit() noexcept;
|
2020-02-27 10:11:59 -08:00
|
|
|
void init(boost::asio::executor &&);
|
2017-08-28 14:51:22 -07:00
|
|
|
}
|
2019-04-20 15:41:11 -07:00
|
|
|
|
|
|
|
#endif // HAVE_IRCD_IRCD_H
|