diff --git a/include/ircd/mapi.h b/include/ircd/mapi.h index 7744e0835..9ecfab71b 100644 --- a/include/ircd/mapi.h +++ b/include/ircd/mapi.h @@ -25,6 +25,9 @@ namespace ircd { namespace mapi { +struct header; +using magic_t = uint16_t; +using version_t = uint16_t; using metadata = std::map; using init_function = std::function; using fini_function = std::function; diff --git a/include/ircd/mods.h b/include/ircd/mods.h index 453a41dda..7f776c04f 100644 --- a/include/ircd/mods.h +++ b/include/ircd/mods.h @@ -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 {