2018-02-04 03:22:01 +01:00
|
|
|
// Matrix Construct
|
|
|
|
//
|
|
|
|
// Copyright (C) Matrix Construct Developers, Authors & Contributors
|
|
|
|
// Copyright (C) 2016-2018 Jason Volk <jason@zemos.net>
|
|
|
|
//
|
|
|
|
// 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-25 07:40:21 +01:00
|
|
|
|
2019-04-21 00:41:11 +02:00
|
|
|
#ifndef HAVE_IRCD_IRCD_H
|
2018-06-16 00:13:18 +02:00
|
|
|
#define HAVE_IRCD_IRCD_H
|
|
|
|
|
|
|
|
// Generated by ./configure
|
|
|
|
#include "config.h"
|
2019-03-15 21:01:26 +01:00
|
|
|
#include "assert.h"
|
2018-06-16 00:19:29 +02:00
|
|
|
#include "stdinc.h"
|
2018-06-16 00:13:18 +02:00
|
|
|
#include "string_view.h"
|
|
|
|
#include "vector_view.h"
|
|
|
|
#include "byte_view.h"
|
|
|
|
#include "buffer/buffer.h"
|
|
|
|
#include "allocator.h"
|
|
|
|
#include "util/util.h"
|
|
|
|
#include "exception.h"
|
2019-01-18 17:55:06 +01:00
|
|
|
#include "run.h"
|
2018-06-16 00:13:18 +02:00
|
|
|
#include "demangle.h"
|
|
|
|
#include "localee.h"
|
2019-07-15 18:47:34 +02:00
|
|
|
#include "timedate.h"
|
2018-06-16 00:13:18 +02:00
|
|
|
#include "logger.h"
|
|
|
|
#include "info.h"
|
|
|
|
#include "nacl.h"
|
|
|
|
#include "rand.h"
|
2018-11-09 02:04:15 +01:00
|
|
|
#include "crh.h"
|
2018-06-16 00:13:18 +02:00
|
|
|
#include "ed25519.h"
|
|
|
|
#include "color.h"
|
|
|
|
#include "lex_cast.h"
|
|
|
|
#include "base.h"
|
|
|
|
#include "stringops.h"
|
2019-07-11 22:46:32 +02:00
|
|
|
#include "strl.h"
|
|
|
|
#include "cmp.h"
|
|
|
|
#include "globular.h"
|
2018-06-16 00:13:18 +02:00
|
|
|
#include "tokens.h"
|
|
|
|
#include "iov.h"
|
2019-02-26 21:57:43 +01:00
|
|
|
#include "grammar.h"
|
2018-06-16 00:13:18 +02:00
|
|
|
#include "parse.h"
|
|
|
|
#include "rfc1459.h"
|
|
|
|
#include "json/json.h"
|
|
|
|
#include "openssl.h"
|
|
|
|
#include "fmt.h"
|
2018-12-05 00:20:12 +01:00
|
|
|
#include "http.h"
|
2019-06-22 01:54:22 +02:00
|
|
|
#include "http2/http2.h"
|
2018-06-16 00:13:18 +02:00
|
|
|
#include "magics.h"
|
|
|
|
#include "conf.h"
|
2019-03-12 23:00:14 +01:00
|
|
|
#include "stats.h"
|
2019-04-02 20:09:37 +02:00
|
|
|
#include "prof.h"
|
2018-06-16 00:13:18 +02:00
|
|
|
#include "fs/fs.h"
|
|
|
|
#include "ios.h"
|
|
|
|
#include "ctx/ctx.h"
|
|
|
|
#include "db/db.h"
|
|
|
|
#include "js.h"
|
|
|
|
#include "mods/mods.h"
|
|
|
|
#include "rfc1035.h"
|
2019-03-13 18:31:11 +01:00
|
|
|
#include "rfc3986.h"
|
2018-06-16 00:13:18 +02:00
|
|
|
#include "net/net.h"
|
|
|
|
#include "server/server.h"
|
|
|
|
#include "m/m.h"
|
2019-02-18 19:40:21 +01:00
|
|
|
#include "resource/resource.h"
|
2018-06-16 00:13:18 +02:00
|
|
|
#include "client.h"
|
2019-05-29 07:08:46 +02:00
|
|
|
#include "magick.h"
|
2018-06-16 00:13:18 +02:00
|
|
|
|
2017-09-12 18:37:44 +02:00
|
|
|
/// \brief Internet Relay Chat daemon. This is the principal namespace for IRCd.
|
|
|
|
///
|
2017-08-28 23:51:22 +02:00
|
|
|
namespace ircd
|
|
|
|
{
|
2018-04-15 01:19:15 +02:00
|
|
|
seconds uptime();
|
2019-06-06 00:06:16 +02:00
|
|
|
|
|
|
|
void cont() noexcept;
|
2017-11-06 21:14:50 +01:00
|
|
|
bool quit() noexcept;
|
2019-06-06 00:06:16 +02:00
|
|
|
void init(boost::asio::io_context &ios, const string_view &origin, const string_view &hostname);
|
2019-03-02 21:25:51 +01:00
|
|
|
|
|
|
|
extern conf::item<bool> restart;
|
|
|
|
extern conf::item<bool> debugmode;
|
2019-04-15 20:08:40 +02:00
|
|
|
extern conf::item<bool> read_only;
|
|
|
|
extern conf::item<bool> write_avoid;
|
2019-06-01 11:02:37 +02:00
|
|
|
extern conf::item<bool> soft_assert;
|
2017-08-28 23:51:22 +02:00
|
|
|
}
|
2019-04-21 00:41:11 +02:00
|
|
|
|
|
|
|
#endif // HAVE_IRCD_IRCD_H
|