Haka: src/haka/app.h Source File

Haka

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

app.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #ifndef APP_H
6 #define APP_H
7
8 #include <haka/packet_module.h>
9 #include <haka/log_module.h>
10 #include "thread.h"
11
12
13 void basic_clean_exit();
14 void clean_exit();
15 void initialize();
16 void prepare(int threadcount, bool attach_debugger, bool dissector_graph);
17 void start();
18 struct thread_pool *get_thread_pool();
19
20 const char *haka_path();
21
22 struct module;
23
24 extern int set_packet_module(struct module *module);
25 extern struct packet_module *get_packet_module();
26 extern int set_log_module(struct module *module);
27 extern int has_log_module();
28
29 int set_configuration_script(const char *file);
30 const char *get_configuration_script();
31
32 extern char directory[1024];
33
34 const char *get_app_directory();
35
36 void dump_stat(FILE *file);
37
38 bool setup_loglevel(char *level);
39
40 #endif /* APP_H */
41
log_module.h
module
Definition: module.h:34
packet_module
Definition: packet_module.h:33
packet_module.h