diff --git a/ircd/ircd.cc b/ircd/ircd.cc index 8eb6cd7d3..b48b4d540 100644 --- a/ircd/ircd.cc +++ b/ircd/ircd.cc @@ -28,6 +28,7 @@ namespace ircd { extern const uint boost_version[3]; + struct tc_version extern const tc_version; enum runlevel _runlevel; const enum runlevel &runlevel{_runlevel}; @@ -43,6 +44,14 @@ namespace ircd void main(); } +struct ircd::tc_version +{ + int major, minor; + char patch[64]; + std::string version; + tc_version(); +}; + const std::thread::id ircd::static_thread_id { @@ -276,6 +285,24 @@ ircd::reflect(const enum runlevel &level) return "??????"; } +/* +const char* tc_version(int* major, int* minor, const char** patch); +ircd::tc_version::tc_version() +:version{::tc_version(&major, &minor, reinterpret_cast(&patch))} +{} +*/ + +ircd::tc_version::tc_version() +:major{0} +,minor{0} +,patch{0} +,version{"unavailable"} +{} + +struct ircd::tc_version +const ircd::tc_version +{}; + const uint ircd::boost_version[3] {