0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-08-22 09:34:45 +02:00
construct/include/rb
Jason Volk 9d0a959bb5 MAPI IV. This iteration leverages the C++11 standardized RTTI.
* Simplifies the export declarations for module developers. While
MAPI III utilized a flexible key-value vector to eliminate positional
arguments in a header initializer, now the developer simply makes
a list of pointers to what they want to export for injection into
IRCd. Example:

mapi::header IRCD_MODULE
{
	"mymod",
	"My module adds a command, a hook, and a CLICAP",
	&my_cmdtab,
	&some_hook,
	&clicaptab
};

* Distributes the handlers for items passed to the above vector.
Anyone can add a type-handler to the module system from anywhere in IRCd
(and other modules?) When your type is encountered a handler is called
providing the symbol name to read out of the module. Example in parser.cc:

mods::add_loader<Message>([]
(mod &loading, const std::string &symbol)
{
	auto &msg(get<Message>(loading, symbol));
	add_command(msg.name, msg);
});
2016-09-09 16:17:01 -07:00
..
.gitignore Activate PCH for position independent code. 2016-07-25 00:54:38 -07:00
arc4random.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00
balloc.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00
commio.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00
commio_int.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00
dictionary.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00
dlink.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00
event.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00
event_int.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00
format.h rb: import formatter library 2016-07-31 17:55:43 -05:00
helper.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00
linebuf.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00
Makefile.am configure.ac: Fix CPPDEFINE error and improve boost check. 2016-08-19 22:39:34 -07:00
memory.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00
patricia.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00
radixtree.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00
rawbuf.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00
rb.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00
requires.h MAPI IV. This iteration leverages the C++11 standardized RTTI. 2016-09-09 16:17:01 -07:00
ssl.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00
system.h rb: typedef `uint' if necessary. 2016-08-20 20:39:31 -07:00
tools.h Convert IRCd to C++ 2016-07-22 19:46:27 -07:00