mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 07:50:57 +01:00
ircd::mods: Minor cleanup.
This commit is contained in:
parent
17926e095f
commit
fe90841b8a
2 changed files with 3 additions and 15 deletions
|
@ -25,6 +25,9 @@
|
|||
namespace ircd {
|
||||
namespace mapi {
|
||||
|
||||
struct header;
|
||||
using magic_t = uint16_t;
|
||||
using version_t = uint16_t;
|
||||
using metadata = std::map<std::string, std::string>;
|
||||
using init_function = std::function<void ()>;
|
||||
using fini_function = std::function<void ()>;
|
||||
|
|
|
@ -22,30 +22,15 @@
|
|||
#pragma once
|
||||
#define HAVE_IRCD_MODS_H
|
||||
|
||||
namespace ircd {
|
||||
namespace mapi {
|
||||
|
||||
using magic_t = uint16_t;
|
||||
using version_t = uint16_t;
|
||||
struct header;
|
||||
|
||||
} // namespace mapi
|
||||
} // namespace ircd
|
||||
|
||||
namespace ircd {
|
||||
namespace mods {
|
||||
|
||||
using mapi::magic_t;
|
||||
using mapi::version_t;
|
||||
|
||||
IRCD_EXCEPTION(ircd::error, error)
|
||||
IRCD_EXCEPTION(error, filesystem_error)
|
||||
IRCD_EXCEPTION(error, invalid_export)
|
||||
IRCD_EXCEPTION(error, expired_symbol)
|
||||
IRCD_EXCEPTION(error, undefined_symbol)
|
||||
|
||||
extern struct log::log log;
|
||||
|
||||
struct paths
|
||||
:std::vector<std::string>
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue