]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libcharon/plugins/vici/vici_logger.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libcharon / plugins / vici / vici_logger.h
CommitLineData
96071fdb
MW
1/*
2 * Copyright (C) 2014 Martin Willi
19ef2aec
TB
3 *
4 * Copyright (C) secunet Security Networks AG
96071fdb
MW
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 */
16
17/**
18 * @defgroup vici_logger vici_logger
19 * @{ @ingroup vici
20 */
21
22#ifndef VICI_LOGGER_H_
23#define VICI_LOGGER_H_
24
25#include "vici_dispatcher.h"
26
27#include <bus/listeners/logger.h>
28
29typedef struct vici_logger_t vici_logger_t;
30
31/**
32 * Generic debugging logger over vici.
33 */
34struct vici_logger_t {
35
36 /**
37 * Implements logger interface.
38 */
39 logger_t logger;
40
41 /**
42 * Destroy a vici_logger_t.
43 */
44 void (*destroy)(vici_logger_t *this);
45};
46
47/**
48 * Create a vici_logger instance.
49 *
50 * @param dispatcher dispatcher to receive requests from
b3ab7a48 51 * @return logger backend
96071fdb
MW
52 */
53vici_logger_t *vici_logger_create(vici_dispatcher_t *dispatcher);
54
55#endif /** VICI_LOGGER_H_ @}*/