mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 16:00:57 +01:00
41 lines
874 B
C++
41 lines
874 B
C++
// Matrix Construct
|
|
//
|
|
// Copyright (C) Matrix Construct Developers, Authors & Contributors
|
|
// Copyright (C) 2016-2019 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_REDACTED_H
|
|
|
|
namespace ircd::m
|
|
{
|
|
struct redacted;
|
|
}
|
|
|
|
struct ircd::m::redacted
|
|
:boolean
|
|
{
|
|
redacted(const event::idx &);
|
|
redacted(const event::id &);
|
|
explicit redacted(const event &);
|
|
};
|
|
|
|
inline
|
|
ircd::m::redacted::redacted(const event &event)
|
|
:redacted
|
|
{
|
|
event.event_id
|
|
}
|
|
{}
|
|
|
|
inline
|
|
ircd::m::redacted::redacted(const event::id &event_id)
|
|
:redacted
|
|
{
|
|
index(event_id, std::nothrow)
|
|
}
|
|
{}
|