mirror of
https://github.com/matrix-construct/construct
synced 2024-11-03 04:18:55 +01:00
86 lines
1.6 KiB
C++
86 lines
1.6 KiB
C++
// 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.
|
|
|
|
#pragma once
|
|
#define HAVE_IRCD_M_H
|
|
|
|
/// Matrix Protocol System
|
|
namespace ircd::m
|
|
{
|
|
using ircd::hash;
|
|
|
|
struct init;
|
|
|
|
IRCD_OVERLOAD(generate)
|
|
|
|
extern struct log::log log;
|
|
}
|
|
|
|
namespace ircd::m::vm
|
|
{
|
|
struct opts;
|
|
}
|
|
|
|
#include "name.h"
|
|
#include "error.h"
|
|
#include "self.h"
|
|
#include "id.h"
|
|
#include "event.h"
|
|
#include "dbs.h"
|
|
#include "state.h"
|
|
#include "vm.h"
|
|
#include "room.h"
|
|
#include "user.h"
|
|
#include "users.h"
|
|
#include "rooms.h"
|
|
#include "filter.h"
|
|
#include "events.h"
|
|
#include "node.h"
|
|
#include "login.h"
|
|
#include "register.h"
|
|
#include "invite_3pid.h"
|
|
#include "createroom.h"
|
|
#include "request.h"
|
|
#include "v1/v1.h"
|
|
#include "keys.h"
|
|
#include "edu.h"
|
|
#include "presence.h"
|
|
#include "typing.h"
|
|
#include "receipt.h"
|
|
#include "txn.h"
|
|
#include "hook.h"
|
|
#include "visible.h"
|
|
#include "feds.h"
|
|
#include "app.h"
|
|
|
|
struct ircd::m::init
|
|
{
|
|
struct modules;
|
|
|
|
self::init _self;
|
|
dbs::init _dbs;
|
|
std::unique_ptr<modules> _modules;
|
|
|
|
static void bootstrap();
|
|
void close();
|
|
|
|
public:
|
|
init(const string_view &origin, const string_view &hostname);
|
|
~init() noexcept;
|
|
};
|
|
|
|
struct ircd::m::init::modules
|
|
{
|
|
void init_imports();
|
|
void init_keys();
|
|
|
|
modules();
|
|
~modules() noexcept;
|
|
};
|