Commit graph

2 commits

Author SHA1 Message Date
fox.cpp
ad13d026ec
Make endpoint modules special
To support unusual configuration syntax, endpoint modules (imap, smtp,
etc) relied on rather awkward code using modName+instName+aliases as
arguments. This commit replaces old handling with use of special
signature similar to inlineArgs introduced in 1edd031.

Endpoint modules are placed in a separate 'registry' and use
different initialization callback signature for simplicity. This makes
them inaccessible for other modules, though they are not supposed to be
anyway.

Endpoint modules are initialized before other modules. This allows
detecting unused configuration blocks by checking for modules
that were not lazily initalized after endpoint initialization.
This relies on endpoint modules being essentially "roots" of
instances dependency tree.

Idea of "semantical module names" is completely dropped now and so
HACKING.md is updated to not mention it.
2019-10-26 21:28:07 +03:00
fox.cpp
97b370191d
Make maddy buildable with GOOS=windows
Some people want to do so (#83) and it is not a big trouble
for us to support it.
2019-10-26 19:58:47 +03:00