Haka
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 */
Definition: module.h:34
Definition: log_module.h:21
struct module module
Definition: log_module.h:31
Definition: log.h:154
struct logger * log_module_logger(struct module *module, struct parameters *args)
Definition: log_module.c:21
Definition: log_module.h:30