0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00
construct/include/ircd
2017-11-30 11:27:00 -08:00
..
ctx ircd::ctx: Improve the pool counters. 2017-11-30 11:23:46 -08:00
db ircd:Ⓜ️ Checkpoint matrix top-half / modules. 2017-11-30 11:23:44 -08:00
js
json ircd::json: Stub a canonize() function which isn't complete yet. 2017-11-30 11:23:47 -08:00
m ircd:Ⓜ️ Checkpoint matrix. 2017-11-30 11:23:47 -08:00
net ircd::net: listener: Explicit string ctor; no default port to ensure one is specified. 2017-11-30 11:23:47 -08:00
.gitignore
allocator.h
array_view.h
asio.h
buffer.h ircd::buffer: Fix assertion for empty buffer. 2017-11-30 11:23:46 -08:00
byte_view.h
client.h
color.h
cuckoo.h ircd: Add preliminary skeleton for cuckoo suite. 2017-11-30 11:23:48 -08:00
date.h
ed25519.h
exception.h ircd: Wrap the std::terminate() handler and add some related toys. 2017-11-30 11:23:46 -08:00
fmt.h
fs.h ircd::fs: Path cleanup. 2017-11-30 11:23:46 -08:00
hash.h
http.h ircd::http: Parse a connection header. 2017-11-30 11:23:39 -08:00
info.h
ios.h
iov.h
ircd.h ircd: Preliminary initial conf. 2017-11-30 11:23:46 -08:00
js.h
lex_cast.h
life_guard.h
localee.h
logger.h
Makefile.am
mapi.h
mods.h
nacl.h
openssl.h ircd::net: OpenSSL/net interface for peer certificates so m:: can hash/verify. 2017-11-30 11:23:44 -08:00
params.h ircd::util: Add a count for the params size. 2017-11-30 11:23:44 -08:00
parse.h
rand.h
README.md Move sections from include README to main README; various updates. 2017-11-30 11:23:46 -08:00
resource.h
rfc1459.h
server.h ircd: Add interrupt for server dtor. 2017-11-30 11:23:46 -08:00
spirit.h
stdinc.h ircd: Add #ifdef around experimental string_view for non-c++17. 2017-11-30 11:27:00 -08:00
string_view.h
stringops.h
timer.h
tokens.h
util.h ircd::util: Consolidate a few typographical constexprs here. 2017-11-30 11:23:45 -08:00
vector_view.h

IRCd Library API

Getting Around

libircd headers are organized into several aggregate "stacks"

As a C++ project there are a lot of header files. Header files depend on other header files. We don't expect the developer of a compilation unit to figure out an exact list of header files necessary to include for that unit. Instead we have aggregated groups of header files which are then precompiled. These aggregations are mostly oriented around a specific project dependency.

  • Standard Include stack <ircd/ircd.h> is the main header group. This stack involves the standard library and most of libircd. This is what an embedder will be working with. These headers will expose our own interfaces wrapping 3rd party dependencies which are not included there. Note that the actual file to properly include this stack is <ircd/ircd.h> (not stdinc.h).

  • Boost ASIO include stack <ircd/asio.h> is a header group exposing the boost::asio library. We only involve this header in compilation units working directly with asio for networking et al. Involving this header file slows down compilation compared with the standard stack.

  • Boost Spirit include stack <ircd/spirit.h> is a header group exposing the spirit parser framework to compilation units which involve formal grammars. Involving this header is a monumental slowdown when compiling.

  • JavaScript include stack <ircd/js/js.h> is a header group exposing symbols from the SpiderMonkey JS engine. Alternatively, <ircd/js.h> is part of the standard include stack which includes any wrapping to hide SpiderMonkey.

  • MAPI include stack <ircd/mapi.h> is the standard header group for modules. This stack is an extension to the standard include stack but has specific tools for pluggable modules which are not part of the libircd core.