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 // snort_module.cc author Russ Combs <rucombs@cisco.com>
20 
21 #ifndef SNORT_MODULE_H
22 #define SNORT_MODULE_H
23 
24 // the snort module is for handling command line args,
25 // shell commands, and basic application stats
26 
27 #include "main/thread.h"
28 
29 namespace snort
30 {
31 class Module;
32 class Trace;
33 }
34 
35 extern THREAD_LOCAL const snort::Trace* snort_trace;
36 
37 snort::Module* get_snort_module();
38 
39 enum
40 {
41     TRACE_INSPECTOR_MANAGER = 0,
42     TRACE_MAIN,
43 };
44 
45 #endif
46 
47