source: nscp/service/routers.hpp @ f7a074d

0.4.00.4.10.4.2
Last change on this file since f7a074d was 81e420c, checked in by Michael Medin <michael@…>, 22 months ago
  • Added support for loading same plugin twice (in different sessions)
  • Added preliminary support for routing passive checks
  • Property mode set to 100644
File size: 409 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::add_plugin(plugin);
17                }
18        };
19}
Note: See TracBrowser for help on using the repository browser.