0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-19 00:10:59 +01:00
construct/include/ircd/m/event/event_id.h

28 lines
1 KiB
C
Raw Normal View History

// 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_EVENT_EVENT_ID_H
// Convenience suite to reverse event::idx to event::id. Note that event::id's
// have more many more tools and related elements than what is found in this
// header; despite the name which merely matches the function name here.
namespace ircd::m
{
bool event_id(const event::idx &, std::nothrow_t, const event::id::closure &);
event::id event_id(const event::idx &, event::id::buf &, std::nothrow_t);
event::id event_id(const event::idx &, event::id::buf &);
event::id::buf event_id(const event::idx &, std::nothrow_t);
event::id::buf event_id(const event::idx &);
}