refactor(modules): Move setup to constructor

This commit is contained in:
Michael Carlberg
2016-12-21 08:00:09 +01:00
parent 81e6fb062f
commit c01f111e34
52 changed files with 100 additions and 149 deletions

View File

@ -10,7 +10,7 @@ namespace modules {
template class module<script_module>;
template class event_module<script_module>;
void script_module::setup() {
script_module::script_module(const bar_settings& bar, string name_) : event_module<script_module>(bar, move(name_)) {
REQ_CONFIG_VALUE(name(), m_exec, "exec");
GET_CONFIG_VALUE(name(), m_tail, "tail");
GET_CONFIG_VALUE(name(), m_maxlen, "maxlen");