mirror of
https://github.com/matrix-construct/construct
synced 2024-10-31 19:08:59 +01:00
105 lines
2.2 KiB
C++
105 lines
2.2 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
|
|
|
|
// required to disambiguate resolution around some overloads in this ns.
|
|
namespace ircd::m
|
|
{
|
|
#ifdef __clang__
|
|
using std::operator<;
|
|
using std::operator==;
|
|
using std::operator!=;
|
|
using ircd::json::at;
|
|
using ircd::json::get;
|
|
#endif
|
|
|
|
using ircd::operator!;
|
|
}
|
|
|
|
// explicit imports required for GCC or clang
|
|
namespace ircd::m
|
|
{
|
|
using ircd::hash;
|
|
}
|
|
|
|
/// Matrix Protocol System
|
|
namespace ircd::m
|
|
{
|
|
struct homeserver;
|
|
|
|
IRCD_OVERLOAD(generate)
|
|
|
|
extern struct log::log log;
|
|
|
|
extern const uint16_t canon_port;
|
|
extern const string_view canon_service;
|
|
|
|
extern const std::vector<string_view> module_names;
|
|
extern const std::vector<string_view> module_names_optional;
|
|
}
|
|
|
|
#include "name.h"
|
|
#include "error.h"
|
|
#include "id.h"
|
|
#include "self.h"
|
|
#include "init.h"
|
|
#include "event/event.h"
|
|
#include "pretty.h"
|
|
#include "get.h"
|
|
#include "query.h"
|
|
#include "dbs/dbs.h"
|
|
#include "hook.h"
|
|
#include "vm/vm.h"
|
|
#include "invite_3pid.h"
|
|
#include "device.h"
|
|
#include "push.h"
|
|
#include "createroom.h"
|
|
#include "creator.h"
|
|
#include "txn.h"
|
|
#include "relates.h"
|
|
#include "room/room.h"
|
|
#include "trace.h"
|
|
#include "user/user.h"
|
|
#include "users.h"
|
|
#include "rooms.h"
|
|
#include "rooms_summary.h"
|
|
#include "groups.h"
|
|
#include "membership.h"
|
|
#include "member.h"
|
|
#include "filter.h"
|
|
#include "events.h"
|
|
#include "node.h"
|
|
#include "login.h"
|
|
#include "request.h"
|
|
#include "fed/fed.h"
|
|
#include "keys.h"
|
|
#include "edu.h"
|
|
#include "presence.h"
|
|
#include "typing.h"
|
|
#include "receipt.h"
|
|
#include "direct_to_device.h"
|
|
#include "visible.h"
|
|
#include "redacted.h"
|
|
#include "replaced.h"
|
|
#include "feds.h"
|
|
#include "app.h"
|
|
#include "bridge.h"
|
|
#include "sync/sync.h"
|
|
#include "fetch.h"
|
|
#include "breadcrumbs.h"
|
|
#include "media.h"
|
|
#include "search.h"
|
|
#include "gossip.h"
|
|
#include "acquire.h"
|
|
#include "burst.h"
|
|
#include "resource.h"
|
|
#include "homeserver.h"
|