2016-07-13 07:17:21 +02:00
|
|
|
#ifndef _RB_REQUIRES_H
|
|
|
|
#define _RB_REQUIRES_H 1
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// This is exactly how they recommend doing it in the docs by Alan Smithee,
|
|
|
|
// but the gcc docs on the other hand, with tongue in cheek, tell the tale
|
|
|
|
// by metaphor: https://gcc.gnu.org/onlinedocs/cpp/Computed-Includes.html
|
|
|
|
|
|
|
|
#include <RB_INC_ASSERT_H
|
|
|
|
#include <RB_INC_STDDEF_H
|
|
|
|
#include <RB_INC_STDARG_H
|
|
|
|
#include <RB_INC_STDINT_H
|
|
|
|
#include <RB_INC_INTTYPES_H
|
|
|
|
#include <RB_INC_CTYPE_H
|
|
|
|
#include <RB_INC_LIMITS_H
|
|
|
|
#include <RB_INC_STDLIB_H
|
|
|
|
#include <RB_INC_UNISTD_H
|
|
|
|
#include <RB_INC_TIME_H
|
|
|
|
#include <RB_INC_FCNTL_H
|
|
|
|
#include <RB_INC_SIGNAL_H
|
|
|
|
#include <RB_INC_DIRENT_H
|
|
|
|
#include <RB_INC_SYS_TYPES_H
|
|
|
|
#include <RB_INC_SYS_TIME_H
|
|
|
|
#include <RB_INC_SYS_STAT_H
|
|
|
|
#include <RB_INC_SYS_FILE_H
|
|
|
|
#include <RB_INC_SYS_PARAM_H
|
|
|
|
#include <RB_INC_SYS_RESOURCE_H
|
|
|
|
#include <RB_INC_SYS_SOCKET_H
|
|
|
|
#include <RB_INC_ARPA_INET_H
|
|
|
|
#include <RB_INC_NETINET_IN_H
|
|
|
|
#include <RB_INC_NETINET_TCP_H
|
|
|
|
#include <RB_INC_STRING_H
|
|
|
|
#include <RB_INC_STRINGS_H
|
|
|
|
#include <RB_INC_STDIO_H
|
|
|
|
#include <RB_INC_CRYPT_H
|
|
|
|
|
|
|
|
// keep this before <cerrno>
|
|
|
|
// #include <RB_INC_ERRNO_H
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#define WIN32_LEAN_AND_MEAN 1
|
|
|
|
#include <RB_INC_WINDOWS_H
|
|
|
|
#include <RB_INC_WINSOCK2_H
|
|
|
|
#include <RB_INC_WS2TCPIP_H
|
|
|
|
#include <RB_INC_IPHLPAPI_H
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} // extern "C"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include <RB_INC_CSTDDEF
|
|
|
|
#include <RB_INC_CSTDINT
|
|
|
|
#include <RB_INC_LIMITS
|
|
|
|
#include <RB_INC_TYPE_TRAITS
|
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-08-29 21:09:59 +02:00
|
|
|
#include <RB_INC_TYPEINDEX
|
2016-07-13 07:17:21 +02:00
|
|
|
#include <RB_INC_CERRNO
|
|
|
|
#include <RB_INC_UTILITY
|
|
|
|
#include <RB_INC_FUNCTIONAL
|
|
|
|
#include <RB_INC_ALGORITHM
|
2016-08-28 06:52:31 +02:00
|
|
|
#include <RB_INC_NUMERIC
|
2016-07-13 07:17:21 +02:00
|
|
|
#include <RB_INC_MEMORY
|
|
|
|
#include <RB_INC_EXCEPTION
|
|
|
|
#include <RB_INC_SYSTEM_ERROR
|
|
|
|
#include <RB_INC_ARRAY
|
|
|
|
#include <RB_INC_VECTOR
|
2016-10-20 04:50:55 +02:00
|
|
|
#include <RB_INC_STACK
|
2016-07-13 07:17:21 +02:00
|
|
|
#include <RB_INC_STRING
|
2016-10-17 21:14:35 +02:00
|
|
|
#include <RB_INC_LOCALE
|
|
|
|
#include <RB_INC_CODECVT
|
2016-08-13 00:21:10 +02:00
|
|
|
#include <RB_INC_MAP
|
|
|
|
#include <RB_INC_SET
|
|
|
|
#include <RB_INC_LIST
|
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-08-29 21:09:59 +02:00
|
|
|
#include <RB_INC_FORWARD_LIST
|
2016-09-07 23:39:41 +02:00
|
|
|
#include <RB_INC_UNORDERED_MAP
|
|
|
|
#include <RB_INC_DEQUE
|
2016-11-01 11:56:31 +01:00
|
|
|
#include <RB_INC_QUEUE
|
2016-08-13 00:21:10 +02:00
|
|
|
#include <RB_INC_SSTREAM
|
2016-08-14 01:42:12 +02:00
|
|
|
#include <RB_INC_FSTREAM
|
2016-07-13 07:17:21 +02:00
|
|
|
#include <RB_INC_IOSTREAM
|
2016-08-25 09:59:58 +02:00
|
|
|
#include <RB_INC_IOMANIP
|
2016-07-13 07:17:21 +02:00
|
|
|
#include <RB_INC_CSTDIO
|
2016-09-07 23:39:41 +02:00
|
|
|
#include <RB_INC_CHRONO
|
2016-08-16 00:25:54 +02:00
|
|
|
#include <RB_INC_CTIME
|
2016-09-24 06:01:57 +02:00
|
|
|
#include <RB_INC_ATOMIC
|
|
|
|
#include <RB_INC_THREAD
|
|
|
|
#include <RB_INC_MUTEX
|
|
|
|
#include <RB_INC_CONDITION_VARIABLE
|
2016-08-15 05:08:01 +02:00
|
|
|
|
|
|
|
//#include <RB_INC_BOOST_LEXICAL_CAST_HPP
|
2016-07-13 07:17:21 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _RB_REQUIRES_H */
|