2
* Copyright (C) 2013 Martin Willi
3
* Copyright (C) 2013 revosec AG
5
* This program is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License as published by the
7
* Free Software Foundation; either version 2 of the License, or (at your
8
* option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10
* This program is distributed in the hope that it will be useful, but
11
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17
* @defgroup xpc_logger xpc_logger
28
typedef struct xpc_logger_t xpc_logger_t;
31
* Connection specific logger over XPC.
36
* Implements logger_t.
41
* Set the IKE_SA unique identifier this logger logs for.
43
* @param ike_sa IKE_SA unique identifier
45
void (*set_ike_sa)(xpc_logger_t *this, u_int32_t ike_sa);
48
* Destroy a xpc_logger_t.
50
void (*destroy)(xpc_logger_t *this);
54
* Create a xpc_logger instance.
56
* @param conn XPC connection to send logging events to
59
xpc_logger_t *xpc_logger_create(xpc_connection_t conn);
61
#endif /** XPC_LOGGER_H_ @}*/