0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 12:48:54 +02:00

ircd::mods: Minor cleanup.

This commit is contained in:
Jason Volk 2017-04-03 00:06:02 -07:00
parent 17926e095f
commit fe90841b8a
2 changed files with 3 additions and 15 deletions

View file

@ -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 ()>;

View file

@ -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>
{