source: nscp/service/routers.hpp @ 40fca56

0.4.00.4.10.4.2
Last change on this file since 40fca56 was 0d9eed6, checked in by Michael Medin <michael@…>, 19 months ago

minor fix to make it build on debian as well

  • Property mode set to 100644
File size: 423 bytes
Line 
1#pragma once
2
3#include "NSCPlugin.h"
4#include "plugin_list.hpp"
5
6using namespace nscp::helpers;
7
8namespace nsclient {
9        struct routers : plugins_list_with_listener {
10
11                routers(nsclient::logger *logger) : plugins_list_with_listener(logger) {}
12
13                void add_plugin(plugin_type plugin) {
14                        if (!plugin || !plugin->has_routing_handler())
15                                return;
16                        plugins_list_with_listener::add_plugin(plugin);
17                }
18        };
19}
Note: See TracBrowser for help on using the repository browser.