Haka: include/haka/log_module.h Source File

Haka

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

log_module.h
Go to the documentation of this file.
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
10 #ifndef HAKA_LOG_MODULE_H
11 #define HAKA_LOG_MODULE_H
12
13 #include <wchar.h>
14 #include <haka/module.h>
15 #include <haka/log.h>
16
17
21 struct logger_module {
22 struct logger logger;
23 struct log_module *module;
24 };
25
30 struct log_module {
31 struct module module;
37 struct logger_module *(*init_logger)(struct parameters *args);
38
42 void (*cleanup_logger)(struct logger_module *logger);
43 };
44
48 struct logger *log_module_logger(struct module *module, struct parameters *args);
49
50 #endif /* HAKA_LOG_MODULE_H */
module
Definition: module.h:34
logger_module
Definition: log_module.h:21
log_module::module
struct module module
Definition: log_module.h:31
logger
Definition: log.h:154
log_module_logger
struct logger * log_module_logger(struct module *module, struct parameters *args)
Definition: log_module.c:21
log.h
module.h
log_module
Definition: log_module.h:30