1 //--------------------------------------------------------------------------
2 // Copyright (C) 2014-2021 Cisco and/or its affiliates. All rights reserved.
3 //
4 // This program is free software; you can redistribute it and/or modify it
5 // under the terms of the GNU General Public License Version 2 as published
6 // by the Free Software Foundation.  You may not use, modify or distribute
7 // this program under any other version of the GNU General Public License.
8 //
9 // This program is distributed in the hope that it will be useful, but
10 // WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 // General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License along
15 // with this program; if not, write to the Free Software Foundation, Inc.,
16 // 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17 //--------------------------------------------------------------------------
18 
19 #ifdef HAVE_CONFIG_H
20 #include "config.h"
21 #endif
22 
23 #include "search_engines.h"
24 
25 #include "managers/plugin_manager.h"
26 
27 using namespace snort;
28 
29 extern const BaseApi* se_ac_bnfa[];
30 
31 #ifdef STATIC_SEARCH_ENGINES
32 extern const BaseApi* se_ac_std[];
33 extern const BaseApi* se_acsmx2[];
34 #ifdef HAVE_HYPERSCAN
35 extern const BaseApi* se_hyperscan[];
36 #endif
37 #endif
38 
load_search_engines()39 void load_search_engines()
40 {
41     PluginManager::load_plugins(se_ac_bnfa);
42 
43 #ifdef STATIC_SEARCH_ENGINES
44     PluginManager::load_plugins(se_ac_std);
45     PluginManager::load_plugins(se_acsmx2);
46 #ifdef HAVE_HYPERSCAN
47     PluginManager::load_plugins(se_hyperscan);
48 #endif
49 #endif
50 }
51 
52